summaryrefslogtreecommitdiff
path: root/restic_backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'restic_backup.sh')
-rwxr-xr-xrestic_backup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/restic_backup.sh b/restic_backup.sh
index 2ace329..831d066 100755
--- a/restic_backup.sh
+++ b/restic_backup.sh
@@ -36,6 +36,7 @@ restic backup \
--files-from "${CONFIG_DIR}/paths" \
--exclude-file "${CONFIG_DIR}/excludes" \
--password-file "${RESTIC_PASSWORD_FILE}" \
+ --option rclone.timeout=20m \
--tag daily || {
echo "Error: Restic backup failed." >&2
notify "Restic Backup ($(whoami)@$(hostname))" "Backup phase failed!" 8
@@ -51,6 +52,7 @@ restic forget \
--keep-weekly 4 \
--keep-monthly 6 \
--keep-yearly 6 \
+ --option rclone.timeout=20m \
--prune || {
echo "Error: Restic forget/prune failed." >&2
notify "Restic Backup ($(whoami)@$(hostname))" "Prune phase failed!" 8