rsync is a fast, versatile, remote (and local) file-copying tool in Unix / Linux. The chown command changes the owner and owning group of files.
Local: rsync [OPTION...] SRC... [DEST]
Access via remote shell: Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST:DEST
Access via rsync daemon: Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST] rsync [OPTION...] rsync://[USER@]HOST[:PORT]/SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST::DEST rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST
rsync --dry-run --remove-source-files -P -ravvh *.mp4 user@server_name:/home/user/
-r, --recursive recurse into directories -a, --archive archive mode(no -H,-A,-X) -v, --verbose increase verbosity -vv very verbose -h, --human-readable output numbers in a human-readable format -n, --dry-run perform a trial run with no changes made --ignore-existing skip updating files that exist on receiver --remove-source-files sender removes synchronized files (non-dir) --progress show progress during transfer --partial keep partially transferred files -P option is equivalent to --partial --progress.