Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Last active May 17, 2021 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binshengliu/8d7a8194c9c390fac70d2185218900a3 to your computer and use it in GitHub Desktop.
Save binshengliu/8d7a8194c9c390fac70d2185218900a3 to your computer and use it in GitHub Desktop.
Full System Backup
# https://wiki.archlinux.org/title/Rsync#Full_system_backup
rsync -aAXHv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup
# More human readable
rsync -aAXHh --info=progress2 --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment