Created
March 25, 2015 15:11
-
-
Save kgorskowski/d5a962b718338bf012e1 to your computer and use it in GitHub Desktop.
server to server synchronisation with lsyncd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings { | |
logfile = "/var/log/lsyncd/lsyncd.log", | |
statusFile = "/var/log/lsyncd/lsyncd.status" | |
} | |
sync { | |
default.rsyncssh, | |
source = "/sites/", | |
host = "x.x.x.x", | |
targetdir = "/sites/", | |
exclude = {"*.bak" , "*.tmp" , "*.log" }, | |
rsync = { | |
archive = true, | |
compress = true, | |
owner = true, | |
perms = true, | |
_extra = {"--delete-excluded"}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment