Backup
From Linuxintro
Revision as of 07:12, 4 October 2009 by imported>ThorstenStaerk
To make your backup effective, you need to know which are the files that you do not want to loose when your computer goes bye-bye. Keep all this files beneath the folder /root/archiv. Yes all. Your pictures and your texts and your secret passwords. Now go and buy a USB disk. Mount the disk on /mnt/usb. Now install Unison, here is an example for SUSE Linux:
yast -i unison
Now all that is left to do is to keep /root/archiv and your USB disk on /mnt/usb in sync:
unison /root/archiv /mnt/usb/archiv
Take an image of your computer
To store a backup of your computer on another computer in the network, use
tar -cv -f- $(ls -1 | grep -Ev "proc|sys|tmp|media|mnt") | ssh root@target "cat >/root/slash.tar"
This stores a backup of your computer, but not /proc, /sys, /tmp, /media and /mnt on the computer target in /root/slash.tar.