IMPORTANT NOTICE
During the next period of time, the Thecus Wiki will migrate to a new site - the NAS Website. The migration is part of an improvement initiative, which includes giving the site a new look and making it more user friendly.
During the migration information may exist both at the old and new site, however slowly pages should start to be located mainly at the new site. Please see the NAS Website for details.
Talk:N5200 Module: RSYNC
From Thecus Wiki
Contents |
Configuration
I had to change the following in rsyncd.conf to make rsync work. Your setup may not require these changes.
- Allowed IP address did not match my local net.
- Had to change allowed IP address to this format x.y.z.v/24 - otherwise I was not allowed to connect.
- Had to add username to my share, to be able to access files.
Usage for backup
If you would like to run backup of your shares on an external machine, this syntax may be helpful:
rsync -av --progress --delete rsync://1.2.3.4/sharename/ .
Replace "1.2.3.4" with the IP of the N5200 box, and "sharename" with the name of your share. This will (incrementally) back up all of the share to the current directory.
Backup to NAS
I found I had to create a link in /bin to be able to run an rsync command from the client to the NAS.
# cd /bin # ln -s /raid0/data/module/RSYNC/system/bin/rsync_acl rsync
I then did the following to backup the data from my client to the NAS:
# rsync -av /mydata/ sys@<nas_ip>:/raid0/data/your/share/
anonymous rsync on LAN port
I can't get this to work by changing the rsyncd.conf (deleting all the hosts allow lines) or by using the rsync_noacl server; but it works fine on the WLAN port. Is the source available?
extended attributes
While backing up some OSX-machines with
rsync -aXh -p -v --stats --delete [..]
I got these errors:
rsync: rsync_xal_set: lsetxattr("A/Azteak folder/.Azteak.HrcTi3","user.com.apple.FinderInfo") failed: Operation not supported (95)
rsync: rsync_xal_set: lsetxattr("A/Azteak folder/.Azteak.HrcTi3","user.com.apple.ResourceFork") failed: Operation not supported (95)
On client side, I use rsync version 3.0.4 - the module is build with 3.0.3preview. How can I build it with 3.0.4? Or will this neither work with the attribute X?