mickours / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

Why only -lts option as argument to rsync #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start lsyncd, and wait for the first copy
2. Owner and attributes are not preserved on the destination because of the 
default -lts option

What is the expected behavior? What does Lsyncd do instead?

Better - in my opinion - would be to use the -a option, which sets -rlptgoD

What version of Lsyncd are you using? On what operating system (host and
target(s)?

2.0.4

If applicable please copy/paste your Lsyncd configuration file.

/usr/local/bin/lsyncd -nodaemon -log all -rsync /export xxxxx.nl::standby-export

Original issue reported on code.google.com by bjorn.hijmans@gmail.com on 27 Aug 2011 at 2:21

GoogleCodeExporter commented 9 years ago
Because -a requires to be root.

Original comment by axk...@gmail.com on 27 Aug 2011 at 3:08

GoogleCodeExporter commented 9 years ago
OK, it can easily be changed with a configfile, but maybe something that should 
be mentioned in the documentation. 

Original comment by bjorn.hijmans@gmail.com on 28 Aug 2011 at 6:34

GoogleCodeExporter commented 9 years ago
I suppose it is:

http://code.google.com/p/lsyncd/wiki/Lsyncd20Manual#Layer_4_Configuration:_Defau
lt_Behavior

Original comment by axk...@gmail.com on 28 Aug 2011 at 7:24

GoogleCodeExporter commented 9 years ago
Yes, I read that and understood not everything is preserved (although an rsync 
command is fired on attribute change). But not everybody knows the rsync 
options I guess. But it is not a defect, just a suggestion. 

Original comment by bjorn.hijmans@gmail.com on 28 Aug 2011 at 7:32

GoogleCodeExporter commented 9 years ago
I'm going to rework the rsync configuration interface for Lsyncd 2.1.

However, archive will be by default turned off again. You can try discussing it 
on the maillinglist if the majority of users want it otherwise. Default values 
are just that, hard to guess what a majority wants. I try to set default 
settings that have the minimum on requirements and maximum on safity.

Original comment by axk...@gmail.com on 29 Aug 2011 at 7:31