Created
September 11, 2017 08:20
-
-
Save code26/ccf16bec95ad2dc2a8a7b0fb723a9d49 to your computer and use it in GitHub Desktop.
BACKUP/RESTORE VPS
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 | |
tar zcvf - --exclude=/proc --exclude=/sys --exclude=/dev / | ssh myuser@backupmachine_ip_addr "cat > /home/myuser/VPSbackup.tar.gz" | |
#RESTORE | |
cd / | |
ssh myuser@backupmachine_ip_addr "cat /home/myuser/VPSbackup.tar.gz" | tar zxvf - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment