Comments (9)
Hi,
Maybe this is of use.
http://linux.byexamples.com/archives/305/filter-what-to-backup-with-rsync/
Original comment by [email protected]
on 24 Oct 2009 at 10:20
from lsyncd.
I have the same problem. Using the default rsync --exclude-from
exclude-files.txt
works perfect, using lsyncd --exclude-from exclude-files.txt it seams to be
ignored.
Any idea why?
System:
fedora 11
lsyncd 1.26
Original comment by [email protected]
on 2 Nov 2009 at 3:27
from lsyncd.
Hi,
I took a shoot at the source looking for the cause of the problem, and I found
out
that when passing the arguments to rsync the dir_conf->exclude_file is always
equals
to NULL. I don't know the cause of this problem but a quick workaround is to
force
the dir_conf->exclude_file to the file path and it works. This is not a
permanent
solution to the problem. If and when I have the time I will try to find the
cause of
the problem, should be a small mistake.
System:
fedora 11
lsyncd 1.26
Best regards,
NP
Original comment by [email protected]
on 2 Nov 2009 at 9:38
from lsyncd.
Hi again,
Here is my suggestion for a simple fix, in lsyncd.c line 665 and 669 replace
"dir_conf->exclude_file" for "default_exclude_file" and it should work fine.
System:
fedora 11
lsyncd 1.26
Best regards,
NP
Original comment by [email protected]
on 3 Nov 2009 at 2:30
from lsyncd.
To npissarra,
I exchange the lsyncd.c in line 665 and 669,but it doesn't work fine.
linux centos 5.4
Michael Field
Original comment by [email protected]
on 29 Mar 2010 at 10:37
from lsyncd.
It appears that lsyncd is not properly passing the --exclude-from to rsync,
while my
C is rusty, here's a quick patch that works:
--- lsyncd-1.26/lsyncd.c 2009-01-05 06:39:41.000000000 -0700
+++ lsyncd-1.26.new/lsyncd.c 2010-03-31 13:58:16.000000000 -0700
@@ -662,11 +662,14 @@
case CO_EXCLUDE :
// --exclude-from and the exclude file
// insert only when the exclude file is present otherwise skip it.
- if (dir_conf->exclude_file == NULL) {
+ if (default_exclude_file == NULL) {
continue;
}
argv[argc++] = s_strdup("--exclude-from");
- argv[argc++] = s_strdup(dir_conf->exclude_file);
+ argv[argc++] = s_strdup(default_exclude_file);
t (debug 2)");
continue;
case CO_SOURCE :
argv[argc++] = s_strdup(src);
Original comment by [email protected]
on 1 Apr 2010 at 1:14
from lsyncd.
I suppose this was fixed with 1.33?
Original comment by [email protected]
on 11 Jul 2010 at 7:54
- Changed state: Fixed
from lsyncd.
Looks like excludeFrom nor exclude in Lua configuration file don't work in
2.0.1.
I haven't tested in older versions.
Can you please confirm it's a bug ?
Thanks.
Original comment by [email protected]
on 17 Jan 2011 at 7:40
from lsyncd.
Since if this is sure a new bug as the code base changed completly since 1.33.
Please open a new bug with more details, what is your exclude file, and what is
your config file.
Original comment by [email protected]
on 17 Jan 2011 at 9:51
from lsyncd.
Related Issues (20)
- lsyncd spinning 100% CPU, writing "Normal: waiting for 1 more child processes" indefinitely to the log HOT 5
- Why only -lts option as argument to rsync HOT 5
- rsyncOps in documentation should be rsyncOpts HOT 4
- lsyncd crashes when it gets a notification from kernel HOT 2
- maxDelays doesn't seem to work HOT 6
- initial sync is too agressive HOT 1
- Documentation HOT 6
- rsyncOpts should be able to override "--delete" too HOT 3
- Ubuntu installation ./configure finding lua HOT 1
- lsyncd on arm system not finding getConfig() HOT 2
- lsync dies after initial sync HOT 18
- Compilation Errors on Solaris 11 Express HOT 2
- lsyncd ignores "--filter" command in rsyncOpts for rsyncssh (and maybe rsync) HOT 3
- Thousands of log messages: "Normal: waiting for 1 more child processes." HOT 4
- User and Group ownership not preserved HOT 4
- Bi-directional sync (possibly with unison?) HOT 3
- ERROR: Connection to remote host failed. HOT 2
- Treat rsync exit code 13 as temporary problem HOT 1
- tried to implement the group permission example using octal notation instead of "g+rw", lsyncd status immediately becomes: lsyncd dead but pid file exists HOT 5
- Fails to make on FreeBSD 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsyncd.