LSYNCD configuration file
Settings { logfile = "/var/log/lsyncd.log",--log path status = "/var/log/lsyncd.status",--state file pidfile = "/ Var/run/lsyncd.pid ",--pid file path statusinterval = 1, --state file write minimum time maxprocesses = 4, --Max process Maxdelays = 1 --Maximum delay}--multiple host synchronization servers = { "192.168.1.1"}--multi-sync directory, source backup with path and rsync node name same bakpaths = { "mysql", c11/> "MongoDB", "MSSQL"}--source path source_path= '/dbbackup/' for _, server in Ipairs (servers) does for _, Bakpath in Ipairs (bakpaths) do sync { Default.rsync, Source = Source_path. Bakpath, target = server: ":".. Bakpath, delete = "Running", exclude = { }, rsync = { binary = "/usr/local/bin/rsync",--rsync Version to more than 3 archive = true, compress = True, owner = false, group = False, perms = True, Verbose = True, Copy_links = True } } endend