Dienstag, Juli 29, 2008

Activating the rsync daemon on a QNAP TS-101 NAS

Update: standard rsync seems to be supported without any manual modification since firmware version 2.3.0. Just switch on "Allow remote Rsync server to back up data to NAS" which can be found under "SystemTools" > "Remote Replication". Thanks to seye for this hint.

Got a little new device in my tech zoo. It's a QNAP NAS Server, the TS-101. Nifty little thing because it can act as a multimedia streamer (for iTunes and UPnP clients - uses Twonky inside for the latter), backup storage (works even with Apple's Time Machine if you don't mind hacking a little bit), web server, download agent, etc. pp.

What annoyed me was, that even with the latest firmware one cannot use rsync directly to backup files. In fact there is an rsync daemon running on the TS-101 but it is solely used by QNAP to sync between their NAS devices. If you try to connect to it, you'll probably get an authentication error.

What actually is activated with the latest firmware is telnet access. So here we go. :-)

Looking at the processes running on the TS-101 ("ps | grep rsync") one can see an rsync daemon ("/usr/bin/rsync --daemon --sever-mode=1"). Never saw the --server-mode option before and the man pages on my Mac do not list it either. So let's do "rsync --daemon --help" on the TS-101 which yields:

[...]
--sever-mode=mode 0:Normal, 1:QNAP in daemon-mode
[...]

Aha! Kill the old daemon, launch a new one in server-mode 0 ("/usr/bin/rsync --daemon --sever-mode=0") and try to connect from the Mac:

[...]
@ERROR: invalid uid admin
[...]

Bummer. Hmmm. An rsync daemon gets it's configuration from a file named rsyncd.conf. On the TS-101 it is located in /etc/conf. The first lines look like this:

uid = admin
gid = administrators
log file = /var/log/rsyncd.log
[...]

Strangely the official man page for the rsyncd.conf file does not mention setting uid and gid outside of the modules (do "man rsyncd.conf" on a Unix system). But it seems clear to me that this uid/gid should at least exist on the system - which is not the case on a brand new TS-101.

So one could probably create an account named admin. I just edited the rsyncd.conf and changed admin to administrator (the latter uid does exist).

Now it works!

(Note: No need to reboot the TS-101, because rsync reads its config file every time a connection attempt is made.)

So finally we can make backups between a machine with an rsync client and the rsync daemon on the TS-101 (without using an ssh tunnel which is another possibility that is slower and IMHO not necessary in home networks).

What remains open?
  • After rebooting the TS-101 the rsync daemon is running in mode 1 again. Found the place to change this (/etc/init.d/rsyncd.sh) permanently but
  • It seems that the files underneath /etc get overwitten which the original ones from time to time. Didn't investigate this though...
  • Why does QNAP use a special private mode with rsync? Prevents the normal use and I cannot think of a need for a special mode because the orginal rsync is so versatile)
(Note for Mac users: the latest rsync 3.0.3 can cope with all HFS+ metadata)

27 Kommentare:

FelixO hat gesagt…

Hi,

I would like to know if you managed to 'fix' the qnap init scripts etc so that the rsync daemon can always start as sever-mode=0

Thanks

FelixO hat gesagt…

Found it! :-)

System Tools >> Remote Replication >> Allow remote Rsync server to back up data to NAS

If you tick this option then the config file gains a line:
Rsync Model = NORMAL

The rsync start up script /etc/init.d/rsyncd.sh looks for this entry and if it exists it starts the rsync daemon with sever-mode=0

Boris Zech hat gesagt…

Nice.

Where is the config file that contains the setting Rsync Model = NORMAL? I used the command setcfg to set the Rsync Model which is the pendant to getcfg which is used in /etc/init.d/rsyncd.sh.

Bye.

Simon hat gesagt…

The newest firmware (2.3.0) now supports standard rsync.

Anonym hat gesagt…

Is there any difference between a apple iphone and a 3G one? Which one is better? And what's so good about iPhone?
[url=http://unlockiphone22.com]unlock iphone[/url]

Anonym hat gesagt…

Hey I'd love to congratulate you for such a terrific made site!
Just thought this is a perfect way to make my first post!

Sincerely,
Sage Brand
if you're ever bored check out my site!
[url=http://www.partyopedia.com/articles/sweet-16-party-supplies.html]sweet 16 Party Supplies[/url].

Anonym hat gesagt…

[url=http://kfarbair.com][img]http://www.kfarbair.com/_images/logo.png[/img][/url]

בית מלון [url=http://www.kfarbair.com]כפר בעיר[/url] - שלווה, [url=http://www.kfarbair.com/about.html]חדרים[/url] מרווחים, אינטימיות, [url=http://kfarbair.com/services.html]שקט[/url] . אנו מציעים שירותי אירוח מגוונים כמו כן ישנו במקום שירות חדרים הכולל [url=http://www.kfarbair.com/eng/index.html]אחרוחות רומנטיות[/url] במחירים מפתיעים אשר יוגשו ישירות לחדרכם...

לפרטים נוספים נא גשו לאתרנו - [url=http://kfarbair.com]כפר בעיר[/url] [url=http://www.kfarbair.com/contact.html][img]http://www.kfarbair.com/_images/apixel.gif[/img][/url]

Anonym hat gesagt…

[url=http://vegasonlines.net/real-casino-chips.html]atlantic city casino headliners [/url]
[url=http://vegasonlines.net/desert-casino.html]casinos cordoba [/url]
[url=http://vegasonlines.net/gold-country-casino.html]fin de ano en el casino [/url]
[url=http://vegasonlines.net/fun-spin-casino.html]golden casino http usagoldencasino com [/url]
[url=http://vegasonlines.net/wynn-casino.html]best neteller online casino [/url]
[url=http://vegasonlines.net/treasure-island-casino-and.html]online casino slot gambling [/url]
[url=http://vegasonlines.net/sands-casino-atlantic-city.html]casino carnival [/url]
[url=http://vegasonlines.net/fun-casino.html]atlantic city casino job [/url]
[url=http://vegasonlines.net/golden-moon-casino-mississippi.html]paradise casino [/url]
[url=http://vegasonlines.net/desert-diamond-casino.html]aruba grand beach resort casino [/url]
[url=http://vegasonlines.net/island-view-casino-gulfport.html]casino roulette ganar [/url]
[url=http://vegasonlines.net/gulfport-ms-casino.html]casino gratis com ar [/url]
[url=http://vegasonlines.net/casino-en-ligne.html]playa casino [/url]
[url=http://morbert.com/communityserver/members/casino_2D00_gamblings_2D00_online.aspx]casino on line [/url]
[url=http://vegasonlines.net/internet-casino-games.html]uk casino [/url]
casino luxor
[b]juego online casino[/b]
auckland sky city casino
liceo casino de pontevedra
[b]casino niagara[/b]
vegas venetian resort casino
[u]casino online cn bonus[/u]
grand online casino
casino monterrey
[b]cocinero casino madrid fernando lopez[/b]
casino craps
jeux casino sur net

Anonym hat gesagt…

Genial post and this enter helped me alot in my college assignement. Thank you seeking your information.

Anonym hat gesagt…

Easily I to but I think the post should have more info then it has.

Anonym hat gesagt…

I really like when people are expressing their opinion and thought. So I like the way you are writing

Anonym hat gesagt…

[url=http://seghan.ru/go.php?sid=2][img]http://banners.servized.com/current/gif/pharm_720x90_1.gif[/img][/url]

[url=http://old-drugstore.net/]What is/are Zovirax Tablets?[/url]
What are acyclovir tablets or capsules?
ACYCLOVIR (Zovirax®) treats standard types of viral infections, specifically herpes infections. Acyclovir
will not panacea herpes infections; it see fit remedy the sores rejuvenate faster and expropriate to relieve the annoyance or discomfort.
Now acyclovir is postulated to help bar the infection from coming back. Acyclovir also treats shingles
and chickenpox infections. Generic acyclovir tablets and capsules are available.

What should I communicate my healthiness mindfulness provider before I take this medicine?
They needfulness to identify if you be suffering with any of these conditions:

•dehydration
•neurological infection
•kidney illness
•seizures (convulsions)
•an unprecedented or allergic retaliation to acyclovir, ganciclovir, valacyclovir, valganciclovir, other medicines, foods, dyes, or preservatives
•pregnant or distressing to get in the pudding club
•breast-feeding



[url=http://best-drugstore.aoaoaxxx.ru/][img]http://i079.radikal.ru/0910/b9/3f666eb40896.jpg[/img][/url]
























[url= ]buy online order Find Zoviraxbuy Zovirax sales online specials [/url]
ordering Find Zovirax online scamsFind cheap Zovirax cod
[url= ]Find Zovirax discount onlineFind Zovirax buy online [/url]
buy cod cheap Zoviraxdiscount Zovirax
[url= ]how to Find buy Zovirax onlinebuy brand Zovirax usa online pharmacy [/url]
buy Zovirax pill onlinebuy Zovirax kaufen
[url= ]Zovirax buyingpurchase Zovirax [/url]
insurance buy ZoviraxZovirax no prescription
[url= ]Zovirax storegenaric buy Zovirax [/url]
buy Zovirax cheap us pharmacyZovirax prescriptions
[url= ]pills ZoviraxZovirax min price [/url]
free buy Zoviraxreply how to get sample buy Zovirax online
[url= ]Find cheap Zovirax cod next dayZovirax [/url]
Find Zovirax onlineFind cheap Zovirax without prescription
[url= ]Zovirax and other drug onlinegeneric brands of buy Zovirax online [/url]
online Find Zovirax prescriptionwhere to buy Find Zovirax online
[url= ]real buy Zovirax no prescription onlineZovirax fast delivery [/url]
Zovirax pricebuy Zovirax prescription online
[url= ]Find real buy Zovirax onlinediscount buy Zovirax online [/url]
buying online Find ZoviraxZovirax without a prescription

Anonym hat gesagt…

http://markonzo.edu Excellent work, Nice Design actual ashley furniture [url=http://jguru.com/guru/viewbio.jsp?EID=1536072]actual ashley furniture[/url], tfwfi, watch allegiant air [url=http://jguru.com/guru/viewbio.jsp?EID=1536075]watch allegiant air[/url], qmmbfb, best pressure washers [url=http://jguru.com/guru/viewbio.jsp?EID=1536078]best pressure washers[/url], cdkny, follow dishnetwork [url=http://jguru.com/guru/viewbio.jsp?EID=1536080]follow dishnetwork[/url], :-j, fresh adt security [url=http://jguru.com/guru/viewbio.jsp?EID=1536076]fresh adt security[/url], dlcan,

Anonym hat gesagt…

http://lumerkoz.edu Best Site Good Work http://www.comicspace.com/adalat/ hargett substandard http://riderx.info/members/Buy-Vicodin.aspx trace http://riderx.info/members/Buy-Dostinex.aspx munster tescos http://www.comicspace.com/maxalt_buy/ prime http://soundcloud.com/buy-allegra yoshinari

Anonym hat gesagt…

You could easily be making money online in the hush-hush world of [URL=http://www.www.blackhatmoneymaker.com]blackhat make money[/URL], It's not a big surprise if you have no clue about blackhat marketing. Blackhat marketing uses not-so-popular or misunderstood methods to produce an income online.

Alex hat gesagt…

Hi, thanks a bunch for that hint! In the current firmware 3.4.2, I found the option "Allow remote Rsync server to back up data to NAS" under "Application Server -> Backup Server". Specifying a rsync-user, it seems to work with the following test command: rsync -ra LocalFolder rsync://rsync@qnapts210/MyFolder

best
Alex

Anonym hat gesagt…

top [url=http://www.001casino.com/]free casino bonus[/url] check the latest [url=http://www.casinolasvegass.com/]free casino bonus[/url] free no consign bonus at the leading [url=http://www.baywatchcasino.com/]baywatchcasino.com
[/url].

Anonym hat gesagt…

[url=http://www.23planet.com]casino[/url], also known as familiar riches casinos or Internet casinos, are online versions of daily ("buddy and mortar") casinos. Online casinos consideration gamblers to extemporize and wager on casino games unqualifiedly the Internet.
Online casinos on the whole forth odds and payback percentages that are comparable to land-based casinos. Some online casinos contend higher payback percentages against m‚echelon automobile games, and some publish payout portion audits on their websites. Assuming that the online casino is using an aptly programmed unsystematically reduce up generator, manifest games like blackjack receive an established suffer edge. The payout cut up after these games are established prior the rules of the game.
Uncountable online casinos haul together or be established their software from companies like Microgaming, Realtime Gaming, Playtech, Broad Ploy Technology and CryptoLogic Inc.

Anonym hat gesagt…

I really like what you guys are up too. This
kind of clever work and coverage! Keep up the good works
guys I've incorporated you guys to blogroll.

Stop by my web site: quick ways to make money fast

Anonym hat gesagt…

If you want to improve your knowledge simply keep visiting this web site and be updated with the hottest news update posted here.


Visit my website: online casinos for usa

Anonym hat gesagt…

I think this is among the most important information for
me. And i am glad reading your article. But wanna remark on some general things, The
site style is great, the articles is really nice :
D. Good job, cheers

Also visit my website :: forex blog

Anonym hat gesagt…

This site certainly has all of the information I wanted concerning this subject and didn't know who to ask.

my web blog: stocks options
Also see my web site > binary options

Anonym hat gesagt…

A huge dick in my pussy,the warm wet tounge up my personal arse and cum as well as pussy juice all over me.
Fuck, ozzy

Here is my web site: hcg injections

Anonym hat gesagt…

Incrеdiblе ѕtory there. What occurred after?
Good luck!

Alsο visit my page safe weight loss

Claas hat gesagt…

Awesome. Very helpful. It is the documentation I searched for :-)

Anonym hat gesagt…

smokeless cigarettes, e cigarette, smokeless cigarettes, electronic cigarette, ecig, electronic cigarettes

Anonym hat gesagt…

Hi ich bin Technik Tim