Skip to content

Instantly share code, notes, and snippets.

@MikimotoH
Created August 16, 2019 04:21
Show Gist options
  • Save MikimotoH/e34a40ced7f133e8104fb31b7de9b2d9 to your computer and use it in GitHub Desktop.
Save MikimotoH/e34a40ced7f133e8104fb31b7de9b2d9 to your computer and use it in GitHub Desktop.
ssh tar download exclude directory
ssh [email protected] "cd ~/project; tar --exclude='./downloads' -zcvf - ." | tar zxvf -
@MikimotoH
Copy link
Author

ssh upload

tar zcvf - ./jaconv |  ssh [email protected] -i ~/.ssh/id_rsa_2022  "tar zxvf -"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment