Antony's Logo

Antony's pages of stuff

  • Geek Home
  • HTML & Web Code
    • 2d Canvas
    • 3d Canvas
    • Javascript
  • Command Line
    • Windows CL
    • Windows CL Elevated
    • Windows Powershell
    • Unix & Linux
  • Other Stuff
    • Electronics
    • TV & Radio
    • Excel
    • Powerpoint
    • Word
  • Contact

F*@#ing rsync



Things I have found out whilst learning about rsync



What about rsync ?

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.

Lets Look at rsync Syntax.

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/

Common Options

-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.

Other

Jump to Ubuntu, Linux and me on....

  • Uncomplcated Fire Wall (UFW)
  • Fail2ban
  • HandBrakeCLI
  • Screen
  • htpassword
  • apt
  • Nginx
  • CHOWN
  • rsync
  • youtube-dl
  • vi

by Ant Monkey on Juice © 

Contact me here