User Tools

Site Tools


computing:rsyncrsnapshot

This is an old revision of the document!



  • rsyncrsnapshot
  • Jonathan Haack
  • Haack's Networking
  • netcmnd@jonathanhaack.com

sudo rsync -avxHAX --progress --delete /sourcefiles/path /backup/path

Adding h, H, P, will preserve hard links, give you human readable output, and show the progress (eliminating the need for –progress).

sudo rsync -avxHAXhHP --delete /sourcefiles/path /backup/path

Cloning entire drives, use:

sudo rsync -avxHAXhHP --delete /sourcefiles/path /backup/path --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

If the drive you are cloning from has a different filesystem than the destination drive, you can remove the exclusions as -x will handle those exclusions in that case.

computing/rsyncrsnapshot.1542916570.txt.gz · Last modified: 2018/11/25 01:33 (external edit)