Kinda ugly, but this works for keeping two directories in sync over SSH when you're making a lot of changes on one side: inotifywait -r -m . -e modify,attrib,close_write,move,create,delete | while read ignored; do rsync -avzP foldertotrack/ sec580:/wheretoputit; done
3
3
4
Replying to @jeffmcjunkin
Or just rsync when you’re all done?

Apr 9, 2018 · 10:40 PM UTC

1
2
Replying to @hal_pomeranz
Agreed in some circumstances, but in this case I'm semi- constantly updating a local git-backed directory and testing it in a second VM. Two copies of a decent number of text and binary files.