Last active
October 8, 2017 07:53
-
-
Save jmillerdesign/e6c5af412fbe560d2611 to your computer and use it in GitHub Desktop.
Download a remote directory locally
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
# Download a remote directory locally | |
rsync -zatPe ssh --exclude uploads --exclude files [email protected]:/home/username/path/to/directory/ ~/local/path/to/directory/ | |
# Copy a local directory without removing new files | |
rsync -zatP /path/to/old/ /path/to/new/ | |
# Copy just one file | |
scp [email protected]:/home/username/path/to/file.txt ~/local/path/to/file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment