Skip to content

Instantly share code, notes, and snippets.

@tallcoder
Created January 2, 2015 20:47
Show Gist options
  • Save tallcoder/7e521c48e74131396ac9 to your computer and use it in GitHub Desktop.
Save tallcoder/7e521c48e74131396ac9 to your computer and use it in GitHub Desktop.
Rsync terminal command
# 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