Created
November 28, 2012 09:56
-
-
Save reinier/4160228 to your computer and use it in GitHub Desktop.
Tar remote dir and rsync it to backup dir
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
alias backup-webapps="ssh -t user@domain 'tar zcvf webapps.tar.gz webapps' && mkdir ~/Documents/Backups/webapps-`date +%Y%m%d` && rsync -avz user@domain:/home/user/webapps.tar.gz ~/Documents/Backups/webapps-`date +%Y%m%d`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment