Skip to content

Instantly share code, notes, and snippets.

@benkaiser
Created September 23, 2013 01:09
Show Gist options
  • Save benkaiser/6665435 to your computer and use it in GitHub Desktop.
Save benkaiser/6665435 to your computer and use it in GitHub Desktop.
Rsync backup root folder to external drive
# command from archlinux wiki: https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
sudo rsync -aAXh --progress --exclude /mnt/ --exclude /media/ --exclude /dev/ --exclude /proc/ --exclude /sys/ --exclude /tmp/ --exclude /run/ --exclude /lost+found/ --exclude /home/benkaiser/Copy --exclude /home/benkaiser/tmp /* /run/media/benkaiser/WD\ 2TB/rsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment