Created
April 26, 2010 08:41
-
-
Save domwom/379108 to your computer and use it in GitHub Desktop.
ssh tar rsync
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
## From the server | |
# Untar at destination | |
tar -czf - /some/file | ssh host.name tar -xzf - -C /destination | |
# Save as tarball | |
tar -czpv /path/to/stuff/that/we/backup | ssh [email protected] "dd of=/path/to/where/my/backup/goes/on/the/server/backup.tar.gz" | |
## From Remote | |
ssh [email protected] "tar cvpz /path/to/backup" > ./remoteclient-backup.tar.gz | |
## SCP but dont follow symlinks | |
rsync -azuv -e ssh peng:/dire/to/copy . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment