daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. while [[ true ]] ; do
  4.  
  5.     # performs synchronizations / copy
  6.     rclone sync ....
  7.  
  8.     # waiting for something to change or it will pass 300 seconds
  9.     inotifywait --recursive --timeout 300 -e modify,delete,create,move   SRC_DIR
  10.  
  11.     # going back to the beginning
  12. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top