Guest User

Untitled

a guest
Feb 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # copy from local to remote
  4. tar zvcf - whatever/ | ssh user@host 'cat > whatever.tar.gz'
  5.  
  6. # copy from remote to local
  7. ssh user@host 'tar cz folder/to/copy | tar -xvz
Add Comment
Please, Sign In to add comment