Skip to main content

RSync

A crontab to sync files with synology every minute, encrypted communication:

*/1 * * * * rsync -av -e 'sshpass -password-file=f <path_to_password_file>/rsync_pass -e 'ssh -p <remote_port>' <local_path> <remote_user>@<remote_ip>::<remote_path>

Don't forget to sudo + chmod 600 the password file.