summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorSam Scholten2025-10-22 14:12:20 +1000
committerSam Scholten2025-10-22 15:32:14 +1000
commiteded676575e6ef6150235b71d34ec4612f1a7bfb (patch)
tree3a82e1b91d3d6f09ec906d02c8367297a0751279 /setup.sh
parent271b8d82b129b0818cf767e7c8245976f6422b50 (diff)
downloaddrestic-eded676575e6ef6150235b71d34ec4612f1a7bfb.tar.gz
drestic-eded676575e6ef6150235b71d34ec4612f1a7bfb.zip
Release v1.1.0: Critical multi-device fixes for small VPS instancesv1.1.0v1.1
- Fix memory swap configuration (allow 1G swap) - Add prune coordination (2-4 AM window with jitter) - Add lock retry settings for robustness - Increase rclone bandwidth to 2M - Memory limits increased to 512M
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index 06af46b..7da38a2 100755
--- a/setup.sh
+++ b/setup.sh
@@ -234,6 +234,8 @@ configure_rclone "$MEGA_EMAIL" "$MEGA_TEMP_PASS_FILE"
rm -f "$MEGA_TEMP_PASS_FILE"
# Define the restic repository path, making it unique per host for new installations.
+# This prevents multi-device conflicts and allows each device to manage its own snapshots.
+# If you want to share a single repository across devices, remove the ${HOSTNAME_CLEANED} suffix.
# This is backward-compatible; existing installations will have the old path in their env file.
HOSTNAME_CLEANED=$(hostname | tr -cd '[:alnum:]_.-')
RESTIC_REPO="rclone:backup_remote:/drestic_backups_${HOSTNAME_CLEANED}" # Path is now unique per host
@@ -307,7 +309,7 @@ RCLONE_CHECKERS=1
RCLONE_TIMEOUT=7200s
RCLONE_CONTIMEOUT=600s
RCLONE_LOW_LEVEL_RETRIES=20
-RCLONE_BWLIMIT=1M
+RCLONE_BWLIMIT=2M
# Rclone memory optimization settings
RCLONE_BUFFER_SIZE=4M
RCLONE_USE_MMAP=false