tallcoder
1/2/2015 - 8:47 PM

Rsync terminal command

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
}