Skip to content

Instantly share code, notes, and snippets.

@scammi
Last active May 2, 2021 17:06
Show Gist options
  • Save scammi/72a1b007f0745d211f559ad7d72e8925 to your computer and use it in GitHub Desktop.
Save scammi/72a1b007f0745d211f559ad7d72e8925 to your computer and use it in GitHub Desktop.
Sync notes
#!/bin/bash
while inotifywait -r -e modify,create,delete $1
do
rsync -rvz -e 'ssh -p 4321' --progress $1 [email protected]:Documents/Note
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment