Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fswatch -r "$1" -0 | while read -d "" file
- do
- rsync -a "$1" "$2"
- echo "$file synced"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement