Synchronizes macOS local files and directorines with a remotes. Inspired by Lsyncd.
$ go get github.com/idr0id/resyncd
$ resyncd example.toml
[[sync]]
source = "/Users/username/projects/example"
target = "[email protected]:/srv/http/example.com"
exclude = [
"**/.idea",
"**/.git",
"some-file-in-any-folder",
"/path/to/specified/file"
]
[sync.rsync]
rsh = "/usr/bin/ssh -i /Users/username/.ssh/id_rsa -o StrictHostKeyChecking=no"
acls = true
perms = true
[[sync]]
source = "/Users/username/projects/example2"
target = "[email protected]:/srv/http/example2.com"
exclude = [
"**/.idea",
"**/.git",
]
[sync.rsync]
rsh = "/usr/bin/ssh -i /Users/username/.ssh/id_rsa -o StrictHostKeyChecking=no"
acls = true
perms = true