Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 909 Bytes

116-moving-data.md

File metadata and controls

41 lines (30 loc) · 909 Bytes
tutorial section author update
Command Line Fundamentals
Unit 8: Moving Data
Dennis Tenen
6/19/15

In this section we will learn how to move data between local and remote machines, to sync, and to back up files across the network.

Secure Copy (scp)

# remote to local
# it seems obvious in retrospect, but the directions assume you are working

# This will copy the file from your current local directory to some path on your
# your remote, starting with the home directory for `your_username`. Use -r flag
# to move a directory vs. file.

# the remote path is relative to the home directory (the stuff after the colon)

scp [email protected]:path/to/foobar.txt /some/local/directory`
# local to remote

scp foobar.txt [email protected]:some/path/on/your/server

# with keys
scp -i /path/keys.pem source target
# rsync
coming soon