forked from HawksRepos/PTS-Team
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MrDoobPG
authored and
MrDoobPG
committed
Dec 29, 2019
1 parent
f47a6b3
commit 1f3b09e
Showing
4 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
test="/opt/appdata/plexguide/rclone.conf" | ||
log="/var/plexguide" | ||
|
||
|
||
if grep -q "gdrive:" $test ; then | ||
rclone dedupe gdrive: \ | ||
--dedupe-mode largest \ | ||
--verbose=1 \ | ||
--fast-list \ | ||
--retries 3 \ | ||
--no-update-modtime \ | ||
--user-agent="gdrivedupe" \ | ||
--timeout=30m \ | ||
--config /opt/appdata/plexguide/rclone.conf >> $log/gduncrypt-dupe.log | ||
fi | ||
|
||
if grep -q "tdrive:" $test ; then | ||
rclone dedupe tdrive: \ | ||
--dedupe-mode largest \ | ||
--verbose=1 \ | ||
--fast-list \ | ||
--retries 3 \ | ||
--no-update-modtime \ | ||
--user-agent="tdrivedupe" \ | ||
--timeout=30m \ | ||
--config /opt/appdata/plexguide/rclone.conf >> $log/dupe-tduncrypt.log | ||
fi | ||
|
||
if grep -q "gcrypt:" $test ; then | ||
rclone dedupe gcrypt: \ | ||
--dedupe-mode largest \ | ||
--verbose=1 \ | ||
--fast-list \ | ||
--retries 3 \ | ||
--user-agent="grcyptspace" \ | ||
--no-update-modtime \ | ||
--timeout=30m \ | ||
--config /opt/appdata/plexguide/rclone.conf >> $log/dupe-gdcrypt.log | ||
fi | ||
|
||
if grep -q "tcrypt:" $test ; then | ||
rclone dedupe tcrypt: \ | ||
--dedupe-mode largest \ | ||
--verbose=1 \ | ||
--fast-list \ | ||
--retries 3 \ | ||
--user-agent="tcryptdupe" \ | ||
--no-update-modtime \ | ||
--timeout=30m \ | ||
--config /opt/appdata/plexguide/rclone.conf >> $log/dupe-tdcrypt.log | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Authors: Admin9705, Deiteq, and many PGBlitz Contributors | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
--- | ||
- cron: | ||
name: Weekly rclone dedupe running | ||
special_time: 'weekly' | ||
job: 'bash /opt/plexguide/menu/rclonededupe/dupe.sh >/dev/null 2>&1' | ||
state: present | ||
ignore_errors: yes |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Authors: Admin9705, Deiteq, and many PGBlitz Contributors | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
--- | ||
- cron: | ||
name: Weekly rclone dedupe running | ||
special_time: 'weekly' | ||
job: 'bash /opt/plexguide/menu/rclonededupe/dupe.sh >/dev/null 2>&1' | ||
state: absent | ||
ignore_errors: yes | ||
|