Synology rsync to Truenas Scale SMB share problem

carlitos009

Dabbler
Joined
Sep 1, 2021
Messages
17
In 23.10 Truenas scale rsync was deprecated and I realized it after my backups from synology to my truenas showed errors (I just updated about 2 weeks ago)

I saw a video from Tom Lawrence, thank you Tom, on how to set it up as an app. That worked.

This is my problem for which I have not found a solution: I like to use rsync from my Synology to my truenas (remote) and be able to read the files in an smb share.

I have this set up on my test truenas VM:
Pool>Main_Dataset>rsync_master>photos
Where photos is a dataset with an SMB share

Synology indicates the following error:
“Insufficient Privileges to access this destination shared folder. Please contact the destination administrator for assistance.”

I note that I added user: photo55 with password: Thisisjustatest55

On the dataset rsync_master, which was apps type, I added user apps with full control and also user photo55 with full control. I then did the same thing with the photos data set but this dataset was an SMB dataset and then I added a share which I thought would allow me to send the files there and view them with a file browser.


I can get this to work:
Pool>Main_Dataser>rsync_master

But when I send files to my truenas, since it is not an SMB share I can’t just use a file browser to inspect files.

I am doing something wrong or I am missing something. Can anyone guide me please or send me to the right documentation?

This is my project now since I have tried to get syncthing to work on my synology NAS either as docker or the community app to send files to my truenas for months and I have given up for now. I have not been able to get it work and most people seem to have it working but I have not figured it out.

I hope I am not doing anything crazy by posting in both truenas forums and Tom’s forums to see if I can get some help.
 

PhilD13

Patron
Joined
Sep 18, 2020
Messages
203
If your previous Rsync setup was actually working then likely all you should need to do is go to Data Protection > rsync tasks and setup the existing task again there. Truenas just removed the external rsync service module that was available under the system>services tab. Rsync is still in the base linux system and is available from Data Protection > Rsync Tasks. The Data Protection tab rsync method does require ssh and that needs to be setup in the system services ssh tab but I would think that was already set for the previous method of doing things so just select that as the ssh. It is possible you may also have to add the ssh key from Synology to whatever Truenas user you currently have set for rsync if it is different than what was previously used.

You will not be able to view files from Truenas unless they are attached (Pool>dataset>share>your computer) to a file system your windows (or linux computer if used knows about and can read. Typically that is SMB for windows, and so if you wish to view the files you need to create an SMB share for the dataset and allow your compuer and computer user to discover and see the share. You can install theTruenas app Filemanager to view from a browser but you still have to allow the Filemanager to see the share by setting it up properly in that app.
 

carlitos009

Dabbler
Joined
Sep 1, 2021
Messages
17
If your previous Rsync setup was actually working then likely all you should need to do is go to Data Protection > rsync tasks and setup the existing task again there. Truenas just removed the external rsync service module that was available under the system>services tab. Rsync is still in the base linux system and is available from Data Protection > Rsync Tasks. The Data Protection tab rsync method does require ssh and that needs to be setup in the system services ssh tab but I would think that was already set for the previous method of doing things so just select that as the ssh. It is possible you may also have to add the ssh key from Synology to whatever Truenas user you currently have set for rsync if it is different than what was previously used.

You will not be able to view files from Truenas unless they are attached (Pool>dataset>share>your computer) to a file system your windows (or linux computer if used knows about and can read. Typically that is SMB for windows, and so if you wish to view the files you need to create an SMB share for the dataset and allow your compuer and computer user to discover and see the share. You can install theTruenas app Filemanager to view from a browser but you still have to allow the Filemanager to see the share by setting it up properly in that app.
Thank you fro your response.

I realized after reading your response that I did not explain my problem properly. I was able to get the rsync backup to work but that is basically something which I cannot read from a windows/linux machine. I mostly use Linux but have a windows box.
So I can backup my files from synology to truenas using rsync and I do not need to see those files. If I need to restore something I just do that from Synology.
What I am trying to do is to syncronize the files from the synology to the truenas folder in a way I can read them there. I am starting to think that maybe it is not possible with rsync. I did another test a few minutes ago. I created a child data set and made it generic and not smb. I am able to send files to it but it is not a standar just plain directory tree (folders) which are easy to see in a file manager. It is a distinct folder structure which I guess Synology generates.

I am still in the dark so to speak on how to syn file from synology to truenas but I think it is the wrong tool for this. I have essentially given up on synthing but I may have to revisit that again.

Thank you again for replying
 

PhilD13

Patron
Joined
Sep 18, 2020
Messages
203
Oh ok. There is nothing wrong with rsync. If the sync from Truenas to Synology is working and If you want to sync files from Synology to Truenas then just setup a pull type rsync task from Truenas. Rsync can pull or push files from Truenas end. So if you have a rsync setup to push files from Truenas to synology, then you can create a similar task with the appropriate directories on each end and pull files from Synology to Truenas. That is the direction pull down box in the rsync setup.

As far as not being able to see access or read files, that's most likely a permissions issue as Linux will read SMB share files and windows will read NFS files. If you mostly use Linux you can setup NFS shares and share the files by that method from the systems tab or you can do both.

I don't think you can just directory list files from any directory residing on Truenas like you may be able to or have been able to do with Synology. There is a Filemanager web app that can be installed and used as a web file browser but it's very basic and not very advanced in options. I have since replaced the QNAPS but QNAP (and Netgear too) allowed directory listings as it had a interface that allowed that. Just type in https:// name of server/directory name/ = directory listing after entering user/password.
 

carlitos009

Dabbler
Joined
Sep 1, 2021
Messages
17
Thank you. I was not thinking about this scenario. I will give it a try but I also started revisiting the syncthing app. I made progress there but always the problem is synology. I got it going on truenas just fine now.
 
Top