Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 12:15 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Configuring rsync
PostPosted: Mon Sep 08, 2014 3:08 pm 
Offline
Total Newbie

Joined: Sat Sep 06, 2014 5:29 pm
Posts: 2
Hi everyone. I have a LS410D with firmware version 1.31-11.42. I had successfully enabled SSH. I noticed that rsync is already available (without the need to optware) and actually up and running by default. I configured rsyncd.conf file for my box to be a rsync destination but my problem is that every time I reboot, it goes back to the factory default version of the rsyncd.conf file. I searched through many sources (this fantastic forum, Google, blogs, etc) but I am still not able to find the answer to my query. Can anyone shed some light on what I need to do? I read that I can have custom startup scripts but if rsyncd is already running, how can I modify or add any startup scripts? I had actually even went to the extent of grepping all the files that has the word "rsync" in it but none of them are giving me any hint on how to solve this.

Hope to have your views or input in this. Thanks a lot in advance.


Top
   
 Post subject: Re: Configuring rsync
PostPosted: Mon Sep 08, 2014 6:16 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
Wild guess:
It is the infamous "sanity" script of Buffalo, reverting all your changes.
Buffalo boxes are NOT meant to get tuned by its owner. You should take
what you get and nothing more.
Find the startup script of rsyncd. Find the point, where the startup script
is called during boot (hint: rcS). Change the startup script to call your own
"sanity" script, which "reverts" the revert of the Buffalo sanity script (read:
patches the config file at each and every boot) BEFORE rsyncd is started.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
 Post subject: Re: Configuring rsync
PostPosted: Tue Sep 09, 2014 3:39 am 
Offline
Total Newbie

Joined: Sat Sep 06, 2014 5:29 pm
Posts: 2
Thanks kenatonline for your views. I think "sanity" is the only word that I never searched for. :D

Yes, I had actually went through almost all files under /etc but I couldn't find much related to rsyncd.conf. e.g. There is no rsyncd.conf file referenced by rcS. If a do a grep for rsync in /etc, here's the output:


[root@LS410D etc]# pwd
/etc
[root@LS410D etc]# grep -r rsync *
etc/melco/port.lst:rsync=873
grep: etc/resolv.conf: No such file or directory
hosts.deny:rsync rsfwds: ALL
inetd.conf:#rsync stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/rsync --daemon
inetd.conf:rsync stream tcp nowait root /usr/bin/rsync /usr/bin/rsync --daemon
init.d/inetd.sh: killall rsync
init.d/replication.sh: echo "dest = rsync://${_dstip}/${_dst}/" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "dest = rsync://${MACHINE}/${DEST_DISK}_${DEST_FOLDER_URI}/" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "dest = rsync://${MACHINE}/${DEST_DISK}_${DEST_FOLDER}/" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "dest = rsync://${MACHINE}/${DEST_DISK}/${DEST_FOLDER}/" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "dest = rsync://${MACHINE}/${DEST_DISK}/${DEST_FOLDER}/" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: #echo "rsync_opt_base = -lptgoDR --password-file=${PASSWORD_FILE} --delete" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "rsync_opt_base = -lptgoDR --delete-excluded --timeout=60" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: echo "rsync_acl = off" >> ${ODMIRROR_CONFIG}
init.d/replication.sh: /usr/local/sbin/atd-rsyncqd.sh fo_activate
init.d/replication.sh: /usr/local/sbin/atd-rsyncqd.sh fo_disactivate
init.d/replication.sh: /usr/local/sbin/atd-rsyncqd.sh
init.d/iptables.sh:#rsync
init.d/iptables.sh: case "$rsync" in
init.d/wafs.sh:sugarsync_config_dir=${wbfs_config_dir}
init.d/wafs.sh:sugarsync_iconfig=${wbfs_dir}/etc/sugarsync.conf.default
init.d/wafs.sh:sugarsync_config=${sugarsync_config_dir}/sugarsync.conf
init.d/wafs.sh: if [ -f $sugarsync_config ]; then
init.d/wafs.sh: rm -f ${sugarsync_config}
init.d/wafs.sh: cp ${sugarsync_iconfig} ${sugarsync_config}
init.d/wafs.sh: sugarsync)
init.d/wafs.sh: sed -i "s%ServiceName=.*%ServiceName=SugarSyncoff%" ${sugarsync_config}
init.d/etc/melco/port.lst:rsync=873
grep: init.d/etc/resolv.conf: No such file or directory
melco/port.lst:rsync=873
ondemandsync.conf:# rsync_opt_ext =
ondemandsync.conf:rsync_opt_base = -lptgoDR --delete
ondemandsync.conf:rsync_acl = off
rc.d/extensions.d/K60_wafs.sh:sugarsync_config_dir=${wbfs_config_dir}
rc.d/extensions.d/K60_wafs.sh:sugarsync_iconfig=${wbfs_dir}/etc/sugarsync.conf.default
rc.d/extensions.d/K60_wafs.sh:sugarsync_config=${sugarsync_config_dir}/sugarsync.conf
rc.d/extensions.d/K60_wafs.sh: if [ -f $sugarsync_config ]; then
rc.d/extensions.d/K60_wafs.sh: rm -f ${sugarsync_config}
rc.d/extensions.d/K60_wafs.sh: cp ${sugarsync_iconfig} ${sugarsync_config}
rc.d/extensions.d/K60_wafs.sh: sugarsync)
rc.d/extensions.d/K60_wafs.sh: sed -i "s%ServiceName=.*%ServiceName=SugarSyncoff%" ${sugarsync_config}
rc.d/extensions.d/S40_wafs.sh:sugarsync_config_dir=${wbfs_config_dir}
rc.d/extensions.d/S40_wafs.sh:sugarsync_iconfig=${wbfs_dir}/etc/sugarsync.conf.default
rc.d/extensions.d/S40_wafs.sh:sugarsync_config=${sugarsync_config_dir}/sugarsync.conf
rc.d/extensions.d/S40_wafs.sh: if [ -f $sugarsync_config ]; then
rc.d/extensions.d/S40_wafs.sh: rm -f ${sugarsync_config}
rc.d/extensions.d/S40_wafs.sh: cp ${sugarsync_iconfig} ${sugarsync_config}
rc.d/extensions.d/S40_wafs.sh: sugarsync)
rc.d/extensions.d/S40_wafs.sh: sed -i "s%ServiceName=.*%ServiceName=SugarSyncoff%" ${sugarsync_config}
services:rsync 873/tcp # rsync
services:rsync 873/udp # rsync

As seen above, the closest match that I can find is replication.sh. Since the default rsyncd.conf file already has a syslog set at local4, I edited the replication.sh to set it to local7 as a test. Unfortunately, it remained at local4. Anyone can help in this?

I wished Buffalo had the option of enabling rsync in the web GUI, which I was able to enable in the older model. I recently RMAed my old one and I rather have the old model than this newer LS410D.


Top
   
 Post subject: Re: Configuring rsync
PostPosted: Tue Sep 09, 2014 9:21 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
The sanity script of Buffalo is not a script really.
It is an application, which is called during boot, which reverts
"some" of the scripts for bootup.
Unfortunately I can't remember the name of the application.
It is too long ago, I did anything with a Buffalos box internals.
Sorry.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
 Post subject: Re: Configuring rsync
PostPosted: Tue Feb 10, 2015 10:35 am 
Offline
Total Newbie

Joined: Tue Feb 10, 2015 10:25 am
Posts: 1
Thanks for that much appreciated - I have found some links now on Google

It is easier when you know what to look for !!

_________________
ali


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Powered by phpBB® Forum Software © phpBB Limited