Last active
June 17, 2016 22:44
-
-
Save glw/2c87b14bfcc00dbf1be0 to your computer and use it in GitHub Desktop.
use SCP or RSYNC to copy files from one computer to another
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
#for scp or rsync src and dest patterns are the same | |
scp /source/path/to/files [email protected]:/destination/pathh/to/files | |
#on Windows scp will work with Cygwin | |
##From local Windows machine to remote server. CD your way to the directory holding your file(s) | |
scp files.zip [email protected]:/home/projects | |
##From remote server to your local Windows machine. CD your way to the directory where you want to save your file | |
scp [email protected]:/home/projects/your_file.csv ./ | |
#the great thing about rsync is the --partial option, and the ability to not over-write priviously uploaded files. | |
#example: | |
rsync --progress --partial --rsh=ssh *.tif [email protected]:/home/imagery/2013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment