D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: lumuna on February 24, 2012, 11:58:36 PM
-
Hi,
I have an issue with remote backup and I would appreciate some help. My goal is to backup my DNS-320 to a remote server wich is running a rsync daemon listening on port 873.
Everything is fine with this commande line :
rsync -a --delete /local_path login@remote_server_name::password/remote_server_path
And I would like to have the same result with the graphical interface of the DNS-320.
First of all, I activated the "Remote backup service" with a password.
With the "NAS to NAS"/"Local to Remote" options, I did these 3 tests :
- Remote IP : remote_server_ip ; Password : true_password ; Enable Encryption : off ; Enable Encryption : off ; Incremental backup : off
- Remote IP : remote_server_ip ; Password : wrong_password ; Enable Encryption : off ; Enable Encryption : off ; Incremental backup : off
- Remote IP : remote_server_ip ; Password : login ; Enable Encryption : off ; Enable Encryption : off ; Incremental backup : off
On these 3 tests, the resul is the same : after a "connexion test" during 20 minutes, the next screen appears with a "Remote path" listbox without any item, I can't see and choose any path. Why 20 minutes ? It looks like a timeout. Why the same result with a wrong password ?
I did some tests with the "NAS to Linux"/"Local to Remote" options. The result is always the same : an empty "Remote path" listbox, but without waiting 20 minutes.
I have read 1 million times this post : DNS-320/325 - Remote Backups (NAS to NAS, NAS to Linux). Has anybody any idea on this issue ?
-
You need to have an rsync.conf file located on the machine running the rsync daemon. the rsync.conf file needs to contain something like the below. Once created and restarted the listener you should see a folder called "Pub" as in the example below. This is the folder (path) where the backup will go. It's fairly straight forward to configure different names for different locations etc. this is something I use myself so speak from experience. If you google rsync.conf you will find other examples but the below works for me and you can create as many locations as you want and these will then appear in your dns320 to backup to.
Post back if you are still stuck.
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Random things available for download
path = /path/to/my/public/share
read only = yes
list = yes
uid = nobody
gid = nobody
auth users = pub
secrets file = /etc/rsyncd.secrets
-
Actually, the "remote server" is a cloud backup company. They have 5000 customers backuping NAS, eg Synology or Netgear. Their support service guess my device uses a rsync over SSH connexion instead of native rsync.
Anyway, thank you for your proposal. I will discuss with the backup company of this rsync.conf file.
For my own understanding, why this file is not useful with the command line ?
-
The support service of the cloud backup company told me they already use rsync.conf file with the above parameters (I overwrote some personal informations) :
comment = rsync version 3.0.3 protocol version 30
read only = no
use chroot = yes
pid file = /var/run/rsyncd.pid
timeout = 900
gid = www-data
list = false
[my_module_name]
path = /var/www/user_folder/my_login
uid = www-data