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

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

  • DVD: 4.7 GB

MORE

backup.txt · Last modified: 2022/04/16 12:22 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki