Skip to main content

rsync

  • https://wiki.ubuntuusers.de/rsync/

options

  • a -
  • v -
  • h -
  • z - with compression
  • -e - remote shell auswählen
    • -e 'ssh -p 222' ändert ssh port auf e.g. 222

local to remote server

rsync [option] [source] user@hostname-or-ip:[destination path]
rsync -avhz /home/source-rsync/ user@your-remote-server.com:/home/dest-rsync/

remote to local server

rsync -avhz user@your-remote-server.com:/home/dest-rsync/ /home/source-rsync/