I'm trying to set up a backup system from an Ubuntu server to a Synology NAS (DS413j) using rsync and sftp.
I have created a user for this that we can call ubuntu-backup. I have a directory in ubuntu-backup home directory called www where the backup will be saved. I have enabled Network Backup in DSM The user ubuntu-backup has full access to it's home directory
Here is my rsync config file on the Synology NAS:
#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 [ubuntu-backup] path = /volume1/homes/ubuntu-backup/www comment = Ubuntu Backup uid = ubuntu-backup gid = users read only = false auth users = ubuntu-backup secrets file = /etc/rsyncd.secrets
The permissions on /volume1/homes/ubuntu-backup/www is ubuntu-backup:users 777
Here is the command i'm running.
rsync -aHvhiPb /var/www/ firstname.lastname@example.org:./
sending incremental file list ERROR: module is read only rsync error: syntax or usage error (code 1) at main.c(1034) [Receiver=3.0.9] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
If I'm running this:
rsync -aHvhiPb /var/www/ email@example.com
It looks like its sending files. No errors. But I cant find anything on the NAS.