Open mikeqoo1 opened 5 years ago
settings { logfile = "/var/log/lsyncd.log", statusFile = "/var/run/lsyncd.status", nodaemon = false, log = all, statusInterval = 180, maxProcesses = 1, inotifyMode = "CloseWrite or Modify", maxDelays = 20 } sync { default.rsyncssh, source=來源資料夾, host=目標ip, targetdir=目標資料夾, rsync = { perms = true, archive = true, compress = true, whole_file = false, _extra = {"--bwlimit=5000"} }, ssh = { port = 22 } }
附上簡易設定檔