- 1.) ASUSTOR NAS
2.) Rsync-compatible server

In order to run Rsync on Windows 7 64bit I chose cwRsync from itefix:
Go to https://www.itefix.no/i2/cwrsync-get, select the tab Free Edition and then download cwRsyncServer 4.0.5 Installer. The web page informs you that this version does not support 64bit! If you prefer the 64bit version you may consider buying installer version 5.1.0, but let me assure you that the 32bit version runs flawlessly on my Windows 7 64bit workstation.
During install a new user SvcCWRSYNC is added to run the service. Change the password and remember it for later use.
Prepare the target folder on your Win7 machine: Grant access to user SvcCWRSYNC and verify that another user (most likely your user or the one who has to perform later restore actions and needs access to the Backup folder - including subfolders) has access privileges as well. This is necessary because the Rsync process will create subfolders and will inherit authorization from this target folder!
Run [All Programs] >> [cwRsyncServer] >> [02. Prep a Dir for Upload].
Then run [All Programs] >> [cwRsyncServer] >> [01. rsyncd.conf.] and modify rsyncd.conf:
- Code: Select all
#DESCRIPTION:
#Configuration file for Rsync: Any parameters listed before any [module]
#section are global, default parameters. Each module is a symbolic name
#for a directory on the local host.
#
#CHANGES:
#Date User Description of changes
#24/08/13 Gunthor Created
uid = 0
gid = 0
use chroot = false
hosts allow = 192.168.X.XXX
max connections = 2
strict modes = false
log file = rsyncd.log
pid file = rsyncd.pid
lock file = rsyncd.lock
auth users = SvcCWRSYNC
secrets file = /etc/rsyncd.secrets
timeout = 600
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygdrive/c/work
[backup]
path = /cygdrive/f/Rsync
comment = Backup-Folder on HDD F:\Rsync
read only = false
list = true
transfer logging = yes
Change [hosts allow] to your Asustor NAS IP-adddress.
Change [path] to your prepared target folder.
If you need to add more modules kindly consult [All Programs] >> [cwRsyncServer] >> [Documentation] >> [rsyncd.conf] and feel free to do so.
To ensure that cwRsync will not try to enforce linux-like permissions on a Windows N(T)FS partition it is necessary to add the following line into your C:\Program Files (x86)\ICW\etc\fstab file:
- Code: Select all
none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
Open C:\Program Files (x86)\ICW\etc\etc\rsyncd.secrets and enter:
- Code: Select all
SvcCWRSYNC:YourPassword
Then save and close the file. In order to enhance security switch user and log on as SvcCWRSYNC. Take ownership of this file and delete all other users from having read privileges. Log off and log on with your usual user. Remember that Linux has difficulties handling Windows file permission and continue to leave the setting for [strict modes] within your rsyncd.conf file on false.
Within services open the properties of Rsync server and verify that it will run with the SvcCWRSYNC user. Set the start type to automatic, save changes and start your Rsync server.
Now backing up from your Asustor NAS to your workstation should be possible.
Invoke [ADM] >> [Backup & Restore] >> [Remote Sync] and [Create] a backup job.
Select server type [Rsync-compatible server], transfer mode [Your NAS -> Rsync compatible server] and enter the appropriate information into the subsequent dialogues. In order not to run into permission errors it is important to leave the option [Keep file metadata] unchecked!
Check your local rsyncd.log for errors and verify that you can access the backed up folder contents.
Happy Rsyncing...
