Last active
October 29, 2018 09:49
-
-
Save ebongzzang/44b8af5088f3b6c3310ddf9f565a3b1f to your computer and use it in GitHub Desktop.
lsync example on mac os x
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 = "/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