On Unix-like operating systems, the rsync command synchronizes files from a source to a destination, on a local machine or over a secure network connection. It is a fast, flexible, secure replacement for the command rcp.
First: Setup access to your remote SSH Server using SSH-Keygen and ssh-copy-id: https://www.thegeekstuff.com/2008/11/... (Steps 1-3 should be the only ones applicable).
Secondly: Update the BackupScript with the details of your backup. Refer to here for the source: https://pastebin.com/xXuQ6sSD
Thirdly, copy the script to your storage medium and then CHMOD +x to the Shell Script.
Next execute the script with ./BackupScript.sh
And your done!
#Synology #RSync #SSH