This is the second part of the series:

  1. Rsync data from TrueNas to Synology - Synology Setup
  2. Rsync data from TrueNas to Synology - Prepare TrueNAS
  3. Rsync data from TrueNas to Synology - Back Up the Data - this one

This post will assume you prepared the two machines (Synology and TrueNAS). If you haven't or you want to refresh, please check the other two above

Open the tsync page

It took me a while to fogure out where rsync tasks are - they can be accessed via the Data Protection menu:

is where you'll want to work.

Create a task

You'll need to have the following information at hand:

  1. The path on TrueNAS you want to back up
  2. The IP address of the Synology machine
  3. The location on Synology where you want the backup to be stored (in my case /volume1/NetBackup
  4. The SSH port on the Synology machine (default is 22)

In the Rsync Tasks section shown above you can add a new task by clicking on the Add button.

The top section tab opened to create a rsync task needs all of the above details:

Backup details
Enter details of the backup

On the source side (TrueNAS) you'll need to enter:

  1. The path to be backed up (the one mentioned above)
  2. The user performing the operation (the rsync user set up before)
  3. The direction ( Push  means from local to remote)
  4. A description (optional) to remember the task by

On the Remote side, you need to enter the details for Synology:

  1. The Synology IP address (noted above)
  2. The rsync mode which needs to be SSH
  3. The ssh port on the Synology machine
  4. The remote path (noted above)
  5. Check to Validate Remote Path to make sure the remote path is created if it doesn't exist.

You can then set up the periodicity and if the local path needs to backed up recursively:

I set the task to back up recursively ( all photos I have under /mnt/Main/shares/photo) every Sunday at midnight. Depending on your data and transfer rate, the backup might take a loooong time. My first one took about 5 days.

There are a few other options you need to set:

I selected the task to be enabled ( you may want it disabled while you test). I also selected to keep the original times of the backed up files. You may want to set compress to speed up the process (I did not as photos don't benefit too much from compression).

You can also set Delay Updates which will copy files in temp directories and keep them there until all files are copied. Then, all files are moved into their real paths.

Test the task

First time, I chose to execute the task manually, to see if it works. You can also do it clicking on the arrow button:

Manual run
Manual run

If you're happy, then enable the task. If not, you can tinker more :)

HTH,