Code Monkey home page Code Monkey logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 25, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.