Difference between revisions of "Backup"
From Linuxintro
imported>ThorstenStaerk (New page: 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 store...) |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
+ | 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 | 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" | 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. | This stores a backup of your computer, but not /proc, /sys, /tmp, /media and /mnt on the computer ''target'' in /root/slash.tar. |
Revision as of 16:02, 7 February 2009
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.