Created
January 2, 2015 20:47
-
-
Save tallcoder/7e521c48e74131396ac9 to your computer and use it in GitHub Desktop.
Rsync terminal command
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
# Create .bash_functions file | |
# Include that from .bashrc or .bash_profile | |
function rsync_copy() { | |
# 1 = host | |
# 2 = source file/dir | |
# 3 = destination file/dir | |
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress $2 $1:$3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment