Backup from ubuntu and ds211J

Discuss backup and restore functions of the DiskStation with respect to computer clients, such as Synology Data Replicator, Time Machine, or other client backup software.

Backup from ubuntu and ds211J

Postby erpomata » Wed Nov 09, 2011 11:50 am

Hello to everyone.
I need to make a backup of my home directory on a dierctory present on DS211J.

That's why I set up rsync on the NAS in this way:

/etc/rsyncd.conf

Code: Select all
#motd file = /etc/rsyncd.motd
#log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
use chroot = no

[NetBackup]
path = /var/services/NetBackup
comment = Network Backup Share
uid = root
gid = root
read only = no
list = yes
charset = utf-8
auth users = root
secrets file = /etc/rsyncd.secrets

[myhome]
path = /volume1/myhome
comment = myhome
uid = paolo
gid = paolo
read only = no
list = yes
charset = utf-8
auth users = paolo
secrets file = /etc/rsyncd.secrets


/etc/rsyncd.secret

Code: Select all
root:<secret>
paolo:<secret>


When I run rsync from the client with this command:

Code: Select all
rsync -av -e ssh --delete /home/paolo rsync://paolo@192.168.1.3:873/myhome


I asked for two passwords:

Code: Select all
paolo@192.168.1.3's password:
Password:
@ERROR: auth failed on module myhome
rsync error: error starting client-server protocol (code 5) at main.c(1534) [sender=3.0.8]


I know the first password but the second I have no idea what it is.

A final information.
If I run:

Code: Select all
rsync rsync://paolo@192.168.1.3:873


This is the result:

Code: Select all
NetBackup         Network Backup Share
myhome        myhome



Can you help me?

thanks
erpomata
I'm New!
I'm New!
 
Posts: 4
Joined: Sat May 07, 2011 7:35 am

Re: Backup from ubuntu and ds211J

Postby justinc » Thu Dec 01, 2011 1:36 pm

I just copied whole [NetBackup] section, and got same error.
It started working after commenting out in the new section
Code: Select all
# auth users = root
# secrets file = /etc/rsyncd.secrets
justinc
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Dec 01, 2011 1:19 pm

Re: Backup from ubuntu and ds211J

Postby justinc » Thu Dec 01, 2011 1:53 pm

Missing RFTM. Password in rsync.secret is in plaintext, so for root default value seems to be random (and not hashed unix root password). After disabling authentication, I was still asked for password, but entered string was then ignored. Correct config is like
justinc
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Dec 01, 2011 1:19 pm

Re: Backup from ubuntu and ds211J

Postby erpomata » Fri Dec 02, 2011 6:14 am

Thank you.
In this way it worked for me too.
But there is no way to avoid being prompted for passwords?

Best regards
erpomata
I'm New!
I'm New!
 
Posts: 4
Joined: Sat May 07, 2011 7:35 am


Return to Backup/Restore for computer clients

Who is online

Users browsing this forum: No registered users and 4 guests