Created
February 19, 2019 19:43
-
-
Save abner/d4d8628ae86056812ed17e697cfacaf2 to your computer and use it in GitHub Desktop.
Copy with SCP from remote server using compression
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
#!/bin/bash | |
ssh [email protected] "cd /home/abner/target-folder; tar zc data-bkp --verbose" | tar zx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment