3

这种语法有什么不正确的?它不会让我运行同步..

settings = {
    logfile = "/var/log/lsyncd/lsyncd.log",
    statusFile = "/var/log/lsyncd/lsyncd.status"
},
sync {
    default.rsync,
    source = "/home/path1",
    target = "/home/path2",
    delay     = 15, 
    rsync     = {
        chown = webdev:webdev
    }
}
4

1 回答 1

1

这对我有用:

rsync     = {
    owner = true,
    group = true,
    chown = "webdev:webdev"
}
于 2019-10-03T02:54:02.913 回答