one shot live linux system backup:
1. install target system with same os as source.
2. boot into target system via a rescue disk.
3. rsync -aAXv root@source:/* /target-rootdirectory --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"}
or if you want to be simple:
rsync -aHxv root@1.2.3.4:/* /target-rootdirectory --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/swap
these are nice:
http://djlab.com/2013/02/cloning-a-live-linux-system-with-rsync-over-ssh/
https://wiki.archlinux.org/index.php/full_system_backup_with_rsync
don't forget to:
updatedb
mandb -c
Monday, January 25, 2016
one-shot live linux system backup
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment