Last active
August 5, 2019 14:47
-
-
Save phuongtailtranminh/1f274d898db3aa2b7536226846b74a11 to your computer and use it in GitHub Desktop.
Backup and Restore Ubuntu Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system / | |
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment