rsync is a useful application which synchronizes files and folders between devices. The QNAP TS-101 supports this (with a bit of fiddling).
Setting up the QNAP
On the QNAP, go to the "Remote Replication" page, and turn on "Allow remote Rsync server to back up data to NAS". ("Enable backup from a remote server to the local host." should already be set, and the port should be the default of 873)
Fixing rsyncd.conf
Unfortunately, there seems to be a problem with the rsync configuration file - the master user is set as "admin" which doesn't exist (the root user on the QNAP is "administrator").
To fix this, edit /etc/rsyncd.conf and change: -
uid = admin
to
uid = administrator
Listing Remote Folders
To check that rsync is allowing connections, go to your client and enter: -
rsync 192.168.0.2::
You should get something similar to the following: -
Qmultimedia
Qdownload
Qweb
Qusb
Public
Backing up a directory
To back up a directory, its a simple matter of issuing an rsync command. For example: -
rsync -vrltz --progress --password-file=password.txt --delete --exclude-from=excludes.txt "/cygdrive/C/users/windows_user/Documents/" "qnap_user@192.168.0.2::qnap_folder/"
where: -
password.txt is a file containing your qnap password
excludes.txt is a file containing files not to synchronize
C/users/windows_user/Documents is the folder to copy
qnap_user is a QNAP user that has access to the remote folder
192.168.0.2 is the IP address of the QNAP device
qnap_folder is the destination
Subscribe to:
Post Comments (Atom)
-
VirtualBox 3.2.10 gives me the following error message when booting Ubuntu 10.10:- piix4_smbus 0000.00.07.0: SMBus base address uninitializ...
-
This is what I have found to be the quickest way to wipe a hard drive under Linux (you can use an Ubuntu Live CD to do this). sudo shred -...
-
PSPad is a great editor for programmers. Instead of using a dedicated Python IDE, PSPad can be tweaked to compile and run scripts directl...
No comments:
Post a Comment