Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b68c12dcf0 | ||
|
|
58b39a94ce |
+3
-2
@@ -1,9 +1,10 @@
|
||||
SOURCE="/mnt/backup/data"
|
||||
REMOTE="yandex:backup_folder"
|
||||
REMOTE="google:backup_folder"
|
||||
MAX_AGE="24h"
|
||||
BW_LIMIT="5M"
|
||||
NTFY_URL="https://ntfy.sh/topic"
|
||||
AUTH="user:password"
|
||||
SERVICE="MyServer"
|
||||
FILTER="{*.tar.gz,*.zst,*.lst}"
|
||||
LOG_FILE="/var/log/rclone-backup.log"
|
||||
LOG_FILE="/var/log/rclone-backup.log"
|
||||
ADVANCED_CLOUD_FLAG='--drive-use-trash=false --drive-chunk-size 64M --drive-stop-on-upload-limit'
|
||||
|
||||
+3
-2
@@ -26,7 +26,8 @@ SYNC_ERROR=$(rclone sync "$SOURCE" "$REMOTE" \
|
||||
--bwlimit "$BW_LIMIT" \
|
||||
--delete-before \
|
||||
--delete-excluded \
|
||||
--checksum $YANDEX_OPTS \
|
||||
--checksum \
|
||||
$ADVANCED_CLOUD_FLAG \
|
||||
-q 2>&1)
|
||||
|
||||
if [ -n "$SYNC_ERROR" ]; then
|
||||
@@ -83,4 +84,4 @@ curl -s -u "$AUTH" \
|
||||
-H "Priority: $PRIORITY" \
|
||||
-H "Tags: $TAGS" \
|
||||
-d "$MESSAGE" \
|
||||
"$NTFY_URL" > /dev/null
|
||||
"$NTFY_URL" > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user