Created
October 10, 2015 05:53
-
-
Save joetemp/ce9f1bec39ccb52e2885 to your computer and use it in GitHub Desktop.
/usr/bin/sync_test
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/sh | |
| while inotifywait -e create photos; do | |
| rsync -r -e 'ssh -p 28000' photos/ [email protected]:/srv/http/trailcam/vps_test | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment