The below command will sync all data to a remote server:

rsync -az -A -X sourcedir/ root@10.10.10.5:/remote/directory

Rsync switches explained:

  • -a – Archive mode
  • -z – Compress the data during transfer
  • -A – Preserve – ACL (permissions)
  • -X – Preserve extended attributes (date timestamp)
Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk.