Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
iesvme
V2EX  ›  Linux

lsyncd 无法同步 windows 共享文件。

  •  
  •   iesvme · Nov 28, 2017 · 3317 views
    This topic created in 3104 days ago, the information mentioned may be changed or developed.

    手动运行时,是可以同步过来的,但就是不能自动触发运行;就是 /mnt 有变化了,也不能自动触发同步。
    试了 incron 的 IN_ALL_EVENTS,也是一样,也不能触发自动同步。望高人赐教!

    这是配置文件。

    settings {
    logfile = "/var/log/lsyncd.log",
    statusfile = "/var/log/lsyncd.status"
    }
    sync {
    default.rsync,
    source = "/mnt/pmc",
    target = "/home/总库 /pmc",
    exclude = {".",".tmp","~."}
    }

    mount -t cifs -o ...

    1 replies    2017-12-21 11:15:06 +08:00
    yulgang
        1
    yulgang  
       Dec 21, 2017
    settings {
    statusFile = "/var/log/lsyncd/lsyncd.status",
    statusInterval = 1,
    logfile="/var/log/lsyncd/lsyncd.log",
    insist = true,
    }

    sync {
    default.rsync,
    source = "/opt/tomcat-app-8008/webapps",
    target = "[email protected]::app",

    exclude = { ".*", ".tmp", "/*.zip", "/*.gz", "/*.war", "/*.bak"},
    delay = 600,
    maxProcesses = 4,

    rsync = {
    binary = "/usr/bin/rsync",
    archive = true,
    acls = true,
    compress = true,
    verbose = true,
    owner = true,
    group = true,
    perms = true,
    password_file = "/etc/6666.pwd",
    _extra = {"--bwlimit=300"}
    }
    }

    这是我用的局域网配置,和你的有点区别。仅供参考:

    Version: 2.1.6
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 20:41 · PVG 04:41 · LAX 13:41 · JFK 16:41
    ♥ Do have faith in what you're doing.