Skip to content

Instantly share code, notes, and snippets.

@ebongzzang
Last active October 29, 2018 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebongzzang/44b8af5088f3b6c3310ddf9f565a3b1f to your computer and use it in GitHub Desktop.
Save ebongzzang/44b8af5088f3b6c3310ddf9f565a3b1f to your computer and use it in GitHub Desktop.
lsync example on mac os x
settings {
logfile = "/tmp/lsyncd.log",
statusFile = "/tmp/lsyncd.status",
nodaemon = true
}
sync {
default.rsyncssh,
source="/path/to/source",
host="target-ip-address",
targetdir = "/path/to/target",
rsync= {
binary = "/usr/local/bin/rsync",
archive = true,
compress = true,
},
ssh = {
identityFile = "/Users/itsme/.ssh/id_rsa",
options = {
User = 'target-user'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment