Last active
May 17, 2021 21:51
-
-
Save jdh30/3fab3ab43971986c2595009021231245 to your computer and use it in GitHub Desktop.
Upload files from this machine to another without clobbering.
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
# Upload files from this machine to another without clobbering. | |
# Usage: | |
# ./upload.sh <srcdir> <user@host> <dstdir> | |
tar -cz $1 | ssh $2 "tar -kzxf - -C ${3}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment