Rsync to Synology Drive

Hello
I am having issues connection from my WDMYcloud using rsync to a synology NAS server. I keep getting “Invalid Remote Backup Password. Try Again” I have changed the pw on the remote box for all accounts and I continue to get this. What is the fix or what am I doing wrong? Thanks in advance for the help.

2 Likes

I have the same issue, and can’t really find any info about how to make it work in web.

Update: Using the following settings on the Synology DSM does allow me to rsync from the My Cloud (first gen single bay) to a Synlology NAS.

Access the Synology DSM (I’m running DSM 6.2.3-25426 Update 2) and navigate to Control Panel > File Services > rsync. Select Enable rsync service.

I went an extra step and made sure to use a Synology user (name) who has administrator group privileges and who has read/write access to the Share on the Synology that I copy/rsync the files to. This may or may not be needed.

Next, accessed the My Cloud using Putty from a Windows PC and issued the following Linux terminal command. Note: one will have to adjust the command to suit their use. This includes My Cloud location the files are to be copied from, the IP address of the Synology NAS, the Synology user, and the destination on the Synology NAS. My example:

rsync -avz /DataVolume/shares/Public/Shared\ Pictures/ john@192.168.1.100:/volume1/Pictures/

Generally the very first connection one makes from the My Cloud to the Synology NAS they may be asked to accept the SSH/Certificate from the Synology NAS. If this is the case, type in: yes. Subsequent connections one typically isn’t asked to accept the certificate as it is already stored by the My Cloud.

When the rsync connection is made one typically will have to manually enter the Synology user’s password. There are probably ways to automate this process but for my use I just manually typed in the password. Note: I also got a warning error from the Synology NAS: Could not chdir to home directory /var/services/homes/john: No such file or directory. The rsync program ignores this message, and proceeds to rsync the files/directories.

I found the following Synology document that helped figure out the quick and dirty process to rsync from a first gen single bay My Cloud to a Synology NAS.

How to back up Linux computer to Synology NAS

Thanks, works great.

Consider to run it with “nohup” so you can logout and it continues …

Here are some things you can try to troubleshoot the “Invalid Remote Backup Password” error when using rsync from WDMYcloud to a Synology NAS:

  • Double check that the username and password you are using in the rsync command matches a valid user account on the Synology NAS. The user needs to have permission to write to the share you are syncing to.
  • Make sure you are specifying the username and password correctly in the rsync command. The basic syntax is:

rsync -avz -e “ssh -p 22” --password-file=/path/to/passwordfile /source/dir username@nasipaddress:/dest/dir

  • Try regenerating the SSH key on the Synology NAS for the user account in question. Go to Control Panel > Terminal & SNMP > Terminal and run:

ssh-keygen -t rsa

  • Make sure SSH is enabled on the Synology NAS under Control Panel > Terminal & SNMP. Also double check the port is set to 22.
  • Temporarily disable password authentication and enable public key authentication on the NAS SSH settings to see if that works around the password issue.
  • Check the logs on the Synology NAS for any errors related to SSH or the rsync connection.
  • Try using SSH with the same credentials to connect manually to the NAS to rule out basic SSH connectivity issues.
  • Make sure your WDMYcloud server has the latest rsync version and all dependencies needed for SSH authentication installed.

Let me know if any of those suggestions help resolve the password issue! The key is thoroughly checking both sides of the rsync connection.