Backing Up FreeNAS to Synology - rsync command fails

shnurov

Explorer
Joined
Jul 22, 2015
Messages
74
I've gotten as far as the 'Rsync Task' section in the guide.

Now I'm getting the following error trying to 'save' the task.

Code:
Disconnect Error[ error code 14 ] 


I've researched the question and went backwards step by step - making sure I've followed everything to the dot.
Seems fine - but there are errors.

Then I found that I can call rsync manually to get it going.

Code:
rsync -avz -e ssh rsync@192.168.1.168:volume1/backup /mnt/lz1-3tb/Aux/


It still asks me for a password (ssh key authentication doesn't work) and then errors start popping up.

Code:
rsync@192.168.1.168's password:
receiving incremental file list
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(782) [sender=3.0.9]
rsync: connection unexpectedly closed (110 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.3]


Where did I mess up...

I'm on the same local network.
Going from a FreeNAS box (FreeNAS-11.2-U7) to a Synology DS416play (running DSM 6.2.2-24922 Update 4).
 

shnurov

Explorer
Joined
Jul 22, 2015
Messages
74
Should this be rsync@192.168.1.168:/volume1/backup?
There's progress.

New error is:

Code:
receiving incremental file list
rsync: failed to set permissions on "/mnt/z1-3tb/Aux/backup": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/z1-3tb/Aux/backup/#recycle": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/z1-3tb/Aux/backup/@eaDir": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/z1-3tb/Aux/backup/@eaDir/@tmp": Operation not permitted (1)
backup/
backup/#recycle/
rsync: mkstemp "/mnt/z1-3tb/Aux/backup/#recycle/.desktop.ini.JV07M0" failed: Operation not permitted (1)
backup/@eaDir/
backup/@eaDir/@tmp/

sent 46 bytes  received 258 bytes  55.27 bytes/sec
total size is 74  speedup is 0.24
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1673) [generator=3.1.3]
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Looks like a permission problem. Probably rsync is not the correct user. I have to correct my previous statement, it should probably be:
root@192.168.1.168:/volume1/backup
 

shnurov

Explorer
Joined
Jul 22, 2015
Messages
74
Same error when I log in with another admin permissions user.
That's the login for the Synology user - they don't have root as admin.

Ok, manually it works.

Just inverted the lines.
Code:
rsync -avz -e ssh /mnt/z1-3tb/Aux/ rsync@192.168.1.168:/volume1/backup

Now it's working.

Code:
sent 3,476,791,083 bytes  received 1,671 bytes  23,101,612.98 bytes/sec
total size is 3,641,568,238  speedup is 1.05


---

Now the issue that remains is running it as an actual task. Probably the fact that my ssh auto-login doesn't work is where I need to look deeper into.

Code:
Disconnect Error[ error code 14 ] was generated when trying to communicate with remote host 192.168.1.168 and remote user rsync.
 
Last edited:
Top