Skip to content

Instantly share code, notes, and snippets.

@kgorskowski
Created March 25, 2015 15:11
Show Gist options
  • Save kgorskowski/d5a962b718338bf012e1 to your computer and use it in GitHub Desktop.
Save kgorskowski/d5a962b718338bf012e1 to your computer and use it in GitHub Desktop.
server to server synchronisation with lsyncd
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