Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [[ true ]] ; do
- # performs synchronizations / copy
- rclone sync ....
- # waiting for something to change or it will pass 300 seconds
- inotifywait --recursive --timeout 300 -e modify,delete,create,move SRC_DIR
- # going back to the beginning
- done
Add Comment
Please, Sign In to add comment