Monday, January 25, 2016

one-shot live linux system backup

 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@* /target-rootdirectory --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/swap  

these are nice:

don't forget to:
mandb -c
Post a Comment