Forked from phuongtailtranminh/Backup and Restore Linux Server
Created
March 13, 2018 08:55
-
-
Save sergixnet/ddb6d71aaa4b6a1167e39db594a469a2 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
Similar in this video https://www.youtube.com/watch?v=KTayZIou-1M