Created
July 21, 2022 20:10
-
-
Save vshmoylov/a999dc4d60466150ceddbfde78f2b613 to your computer and use it in GitHub Desktop.
Archive into tgz and transfer data from remote server to local machine as a single ssh command
This file contains hidden or 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
ssh [email protected] "cd ~/whenewer/you/want/to; tar -czf - ." > files-backup.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment