It is currently Fri Jan 15, 2021 10:11 pm
All times are UTC + 8 hours

[HOW TO] install Rsync on a Windows 7 64bit workstation

Backup and data protection discussion at its finest.

[HOW TO] install Rsync on a Windows 7 64bit workstation

Postby Gunthor » Sun Aug 25, 2013 3:11 pm

Within [ADM] >> [Backup & Restore] >> [Remote Sync] Asustor offers 2 different server types:
    2.) Rsync-compatible server
Whereas the first option is easy to setup (you may refer to the Asustor college documentation) the second is more complicated - especially when the Rsync server has to run on Windows 7 and is set up by a beginner. For most beginners Rsync seems complex to understand and use. Advanced users may consider it rudimentary but this [HOW TO] is for beginners like me. ;)

In order to run Rsync on Windows 7 64bit I chose cwRsync from itefix:
Go to, 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
#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.
#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 =
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
   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

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... :D
Asustor AS-604RS, ADM 3.1.2.RHG1 (4 x WD Red WD30EFRX 3TB, RAID 5)
User avatar
Posts: 107
Joined: Sun Jun 23, 2013 6:04 pm
Location: Germany - Stuttgart

Re: [HOW TO] install Rsync on a Windows 7 64bit workstation

Postby Kerry » Thu Aug 29, 2013 8:50 pm

Wow... thanks for the great contribution. But this is not really beginner How-To!!!
Posts: 456
Joined: Wed Jul 03, 2013 9:35 pm

Return to Backup and Data Protection

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests