Table of Contents

RSYNC

@more: HarmattaN RSynC

backup a debian server with rsync :

cat<<EOF > ~/exclude.txt
/boot/grub/menu.lst

/etc/hosts
/etc/hostname
/etc/fstab
/etc/mtab
/etc/dhcp3/dhclient.conf

/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_dsa_key.pub

/etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_rsa_key.pub

/var/lib/mlocate/mlocate.db
EOF

S=/mnt/hda6/
D=root@${BACKUP_HOST}:/mnt/sda6/
  
sudo rsync -avx --progress --exclude-from ~/exclude.txt "$S/" "$D/"

cd /
sudo mv   etc/udev/rules.d/70-persistent-net.rules    etc/udev/rules.d/70-persistent-net.rules.orig
sudo ln -fs /dev/null /etc/udev/rules.d/70-persistent-net.rules

rsync bug

parent ?

https://bugzilla.samba.org/show_bug.cgi?id=4621

it's obvious it will create in destination

why not –create-parents or just –parents like mkdir

nfs ?

rsync: failed to set times on "${FILE}": Stale NFS file handle (116)

@tag: raid , nfs, rsync

misc

CLONE

http://www.sysresccd.org/Main_Page http://clonezilla-sysresccd.hellug.gr/news.php http://partedmagic.com/doku.php

DD

http://serverfault.com/questions/4906/using-dd-for-disk-cloning

@tag: dd

netcat

nc -l -p 1234 > /dev/sda cat /dev/hda | nc backuphost 1234

fdisk -l /dev/sda
Partition 1 does not end on cylinder boundary.

Fix it with gparted

How to make windows boot again ?

encfs bug

Timestamps ignored :

 on hardy :

FYI:

LANG=C encfsctl /home/$USER/local/encfs/

Version 5 configuration; created by EncFS 1.3.2 (revision 20040813)
Filesystem cipher: "ssl/aes", version 2:1:1
Filename encoding: "nameio/block", version 3:0:1
Key Size: 256 bits
Block Size: 512 bytes, including 8 byte MAC header
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File data IV is chained to filename IV.

rsync version 2.6.9 protocol version 29

cleanup

locate .googleearth

MISC

MORE

@TaG: FileSystem Storage RSynC MigratE