D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: Huggybaby on June 13, 2012, 07:26:57 AM
-
Hi, I've checked out several of the Rsync posts on this board and I can't find the answer to my question, so here goes....
I have a DNS 320 and I am trying to Rsync to it from a Qnap TS-412, which is also a NAS device.
On the TS-412 I have gone to "backup" then "remote replication" and chosen server type "NAS server" (I have also tried "Rsync Server" but the results are the same). I then click next, enter the correct IP address, username and password and click "test". I get the message "success" at the top of the screen. I then click next, chosse a destination path of /Volume_1 and click next again. I then choose my local path (/Graham/My Documents), click "next", Click "Replicate now", click "Next", "Next", "Finish" and then after a few seconds watch it fail. The log says "@ERROR: auth failed on module Volume_1
rsync error: error starting client-server protocol (code 5) at main.c(2348) [sender=3.0.7]". Any idea what is causing it? It suggests a password error, but I've checked it over and over and I'm sure that's not the problem.
As far as the DNS 320 configuration goes, I simply set up a user and password to match the Qnap remote replication credentials and gave that user r/w access to Volume_1. I then clicked on "remote backup" and checked the box next to "enable remote backup service". I used the same password as I did for the user account to avoid confusion. Both devices definately support rsync so I'm not sure what I am doing wrong.
To clarify the username/password bit of this better, Let's say I set up the remote replication username as "test" on the Qnap along with a password of "test". I then created a user account on the D-Link with a username of "test" and a password of "test". I then enabled the D-Links remote backup service and used a password of "test" when prompted".
Any help you can give me would be much appreciated!
-
Are they both located on the same network? Does the "test" user account have rights to the folder you have selected to back up to?
I remember I had fun trying to set this up a while back and opted instead to go from the DNS320 to my other device as was simpler and just worked in the end. I think with some patience though I might have got it working. Another option is maybe root the DNS320 and setup a proper rsync.conf file defining your folders and users. google rsync for help with that.
-
I posted something similar that might help you:
Hi Nestor,
I think I figured this one out.
On destination:
1. Install Rsync
2. edit /etc/rsyncd.conf
Here is an example I found from Everything Linux with a few lines removed:
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[simple_path_name]
path = /rsync_files_here (<--Remote path on destination you want to save in, example /mnt/HD/HD_a2/DNSBackup or /Volume_1/Backup)
comment = My Very Own Rsync Server
read only = no
secrets file = /etc/rsyncd.scrt
3. Once that is done edit /var/run/rsyncd.pid and change the port to 783 as noted before.
4. run the command "rsync --daemon" (I keep getting failed to create or something, but this fine, press Enter if you have to)
On the DNS:
1. Applications-->Remote Backups-->Remote Backups
2. Create and do a NAS to Linux, use the username and password of the destination system
This worked for me so hope it does for others.
-
Thanks both. I will give your ideas a try.
I did manage to get replication going via FTP today so at least I have something backed up now.
I will presevere with Rsync though otherwise it will just continue to bug me!