DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-10-06 00:02:02

bound4h
Member
Registered: 2010-04-12
Posts: 209

rsyncd.conf

Where is this file located when installed from the ffp package of rsync?  I can't find it in /etc or /ffp/etc?

Do I have to create one?

Offline

 

#2 2010-10-06 03:06:40

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: rsyncd.conf

As I recall, there is no default file, you have to create and populate it yourself.

Mine looks like:

host allow = 192.168.1.0/24
log file = /mnt/HD_a2/rsyncd.log
uid = root
gid = root
read only = no
[archive]
path = /mnt/HD_a2/Archive
[web]
path = /mnt/HD_a2/web


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2010-10-06 04:33:28

bound4h
Member
Registered: 2010-04-12
Posts: 209

Re: rsyncd.conf

Where did you put yours?  /etc or /ffp/etc?

Offline

 

#4 2010-10-06 04:38:08

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: rsyncd.conf

/ffp/etc

But, you can put it wherever you want as long as you chnage the parameter in the rsyncd.sh startup script

Code:

rsync_flags="--daemon --config=/ffp/etc/rsyncd.conf"

Last edited by FunFiler (2010-10-06 04:39:42)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#5 2010-10-07 03:57:08

bound4h
Member
Registered: 2010-04-12
Posts: 209

Re: rsyncd.conf

I read about the [sample_value] in the rsync doc, but I don't understand where it is used.  So if I have:

[mybackup]
path = /mnt/HD_a2/backup

Does that mean I can use 'mybackup' as sort of a variable when calling that path?  Does that make sense?  I mean, I had no conf file so it was working without it.  I'm just trying to understand the need for it.

Thanks for the help

Offline

 

#6 2010-10-07 04:07:26

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: rsyncd.conf

Yes, if you look at my example above, I have a label named [archive]. I use that in a script where I do a bunch of stuff, but ultimately call rsync as follows:

/usr/bin/rsync -auv --delete --stats 192.168.1.40/archive //192.168.1.41/archive

This copies the files from .40 to .41 using the [archive] label.

If you want details on the syntax in rsyncd.conf, enter "rsyncd.conf" into google and you will see lots of info. For example http://www.samba.org/ftp/rsync/rsyncd.conf.html

Last edited by FunFiler (2010-10-07 04:09:19)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB