I really am stumped - I've spent almost two hours searching for an answer to a ridiculously simple question: how can I continually keep two local files in sync on my mac? I investigated various tricks involving rsync
, then settled on using lsyncd
.
But for the life of me, I can't figure out how I can get lsyncd
to sync two specific files. Is this even supported in the API? It was not clear in the documentation whether or not I could use rsync
in this manner; I assume that lsyncd
is passing CLI options which are preventing this. My configuration is as follows:
sync = {
default.rsync,
source = "/Users/username/Downloads/test1.txt",
target = "/Users/username/Downloads/test2.txt",
rsync = {
binary = "/usr/local/bin/rsync",
archive = "true"
}
}
It just says 'nothing to sync'. Help?