I'm using rsync -z to backup a large amount of XML files. The source is a huge machine with thousands of GBs available on disk, but the destination is not that powerful.
What I want to do is to compress XML files during transfer and keep them compressed at the destination. The option -z does the compression only during the transit.
Is it possible to do it using just one crontab command?
This is the command I am currently using:
*/30 * * * * rsync -rz -e 'sshpass -p "MY_PASSWORD" ssh -p 5022' --ignore-existing --quiet --delete REMOTE_USER@REMOTE_HOST:/path/to/remote/ /path/to/local/