magarto

Rclone hbg script

Sep 30th, 2019
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/bash
  2. # Author magarto
  3. # Change edu to the name of your rclone Google drive folder profile name
  4. # Save as "/user/local/bin/rclon-switch" and "chmod +x" it
  5. # Add it to your crontab to execute it dayly
  6.  
  7. if [[ ! $(pgrep -f rclone) ]]; then
  8.         rclone copy -v "hbg:/hbg" "edu:/hbg" --exclude "/NSP Dumps/demo/" --exclude "/NSP Dumps/demo_updates/" --exclude "/NSP Dumps/base/base-stuck" -P --size-only #--bwlimit 8500k
  9.         rclone dedupe edu:
  10. fi
  11. exit 0
Advertisement
Add Comment
Please, Sign In to add comment