PDA

View Full Version : [ubuntu] Backup & Restore using rsync



cccc
July 24th, 2011, 11:01 PM
Hi

Howto backup the whole Ubuntu machine and restore on the other Hardware using live CD and rsync?

oldfred
July 25th, 2011, 01:32 AM
Some like full image backups. I just rsync the data I consider important and plan on a full reinstall from the liveCD and store my data.

discussion of alternatives/strategy:
https://help.ubuntu.com/community/BackupYourSystem

Full image backups
http://clonezilla.org/
http://www.geekconnection.org/remastersys/
http://www.psychocats.net/ubuntu/remastersys

Originally Posted by MountainX View Post #20 also other backup apps
http://ubuntuforums.org/showthread.php?t=868244&highlight=backup
Sample rsync file, use a text editor and paste into a file & name it mybackup.sh

Oldfred's list of stuff to backup May 2011:
http://ubuntuforums.org/showthread.php?t=1748541
backup the following:

1. /home (Users' personal files and settings)
2. /etc (System-wide configuration settings)
3. /var/spool/cron/crontabs (Commands which run automatically)
4. The script to generate the backup
5. list of installed applications

I include these also:
cp /etc/apt/sources.list ~/sources.list.backup
apt-key exportall > ~/repositories.key
Various hardware listings/configurations
dpkg --get-selections > ubuntu-files
bash ~/Documents/LinuxDocs/CurrentSys/boot_info_script055.sh
lshw -html > ~/hardware_info.html
udevadm info --export-db > file.txt
dmidecode > bios.txt

Other applications if data not separate
apache, any sqldb, tomcat
Document system backup or for multiple install:
http://users.telenet.be/mydotcom/howto/linux/autoinventory.htm

More detail on /etc files to backup - post #3:
http://ubuntuforums.org/showthread.php?t=1500559