Last active
May 2, 2021 17:06
-
-
Save scammi/72a1b007f0745d211f559ad7d72e8925 to your computer and use it in GitHub Desktop.
Sync notes
This file contains hidden or 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
#!/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