summaryrefslogtreecommitdiff
path: root/restic_backup.sh
diff options
context:
space:
mode:
authorSam Scholten2025-09-12 14:54:03 +1000
committerSam Scholten2025-10-22 15:32:07 +1000
commit271b8d82b129b0818cf767e7c8245976f6422b50 (patch)
treec8c428e260488f16a8c228217e4bedff1456cac6 /restic_backup.sh
parent4f45a2c4ed34454677b493d9cfb5fe91af2b6cee (diff)
downloaddrestic-271b8d82b129b0818cf767e7c8245976f6422b50.tar.gz
drestic-271b8d82b129b0818cf767e7c8245976f6422b50.zip
Release v1.0.0: Initial stable releasev1.0.0v1.0
- Basic multi-device backup functionality - Support for MEGA.nz remote storage - Bug fixes for Makefile and backup script
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