rsync
This is an old revision of the document!
rsync between servers
rsync -avzhe ssh --progress directory/ [email protected]:~/
Custom port:
rsync -avzh -e "ssh -p 666" --progress directory/ [email protected]:~/
Directory Locally
rsync -avzh $source_directory $_destination_directory/
-a - archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group -v - verbose -r - recursively -z - compress -h - human readable output --progress - show progress report --include - include only the directories mentioned --exclude - exclude only the directories mentioned
rsync.1430902598.txt.gz · Last modified: 2024/05/23 07:26 (external edit)