diff options
| -rwxr-xr-x | setup.sh | 2 | ||||
| -rw-r--r-- | systemd/restic-backup.service | 1 | ||||
| -rw-r--r-- | systemd/restic-check.service | 1 | ||||
| -rwxr-xr-x | uninstall_system.sh | 3 | ||||
| -rwxr-xr-x | uninstall_user.sh | 3 |
5 files changed, 4 insertions, 6 deletions
@@ -318,6 +318,8 @@ RCLONE_RETRIES=10 RCLONE_RETRIES_SLEEP=30s # Memory optimization for VPS environments RESTIC_CACHE_DIR=/tmp/restic-cache +# Increase HTTP timeout for restic communicating with rclone serve +RESTIC_REST_TIMEOUT=300s GOMAXPROCS=1 EOF log "Setting permissions for $ENV_FILE to 600" diff --git a/systemd/restic-backup.service b/systemd/restic-backup.service index 0c9ae2a..315ce0e 100644 --- a/systemd/restic-backup.service +++ b/systemd/restic-backup.service @@ -8,7 +8,6 @@ Type=oneshot # ExecStart path will be replaced by setup.sh during installation ExecStart=/path/to/be/replaced/restic_backup.sh # Environment variable will be set by setup.sh based on scope -Environment="HOME=/root" # Memory limits to prevent OOM on VPS MemoryMax=500M MemorySwapMax=500M diff --git a/systemd/restic-check.service b/systemd/restic-check.service index 66d87f1..e840159 100644 --- a/systemd/restic-check.service +++ b/systemd/restic-check.service @@ -8,7 +8,6 @@ Type=oneshot # ExecStart path will be replaced by setup.sh during installation ExecStart=/path/to/be/replaced/restic_check.sh # Environment variable will be set by setup.sh based on scope -Environment="HOME=/root" # Memory limits to prevent OOM on VPS MemoryMax=500M MemorySwapMax=500M diff --git a/uninstall_system.sh b/uninstall_system.sh index 1f217e6..66f178d 100755 --- a/uninstall_system.sh +++ b/uninstall_system.sh @@ -33,8 +33,7 @@ echo "Reloading systemd daemon..." systemctl daemon-reload echo "Removing backup scripts..." -rm -f /usr/local/bin/restic_backup.sh -rm -f /usr/local/bin/restic_check.sh +rm -f /usr/local/bin/restic_backup.sh /usr/local/bin/restic_check.sh /usr/local/bin/common.sh echo "" echo "Remove configuration files? This includes passwords and settings!" diff --git a/uninstall_user.sh b/uninstall_user.sh index 3305946..cdf0e0d 100755 --- a/uninstall_user.sh +++ b/uninstall_user.sh @@ -26,8 +26,7 @@ echo "Reloading systemd daemon..." systemctl --user daemon-reload echo "Removing backup scripts..." -rm -f ~/.local/bin/restic_backup.sh -rm -f ~/.local/bin/restic_check.sh +rm -f ~/.local/bin/restic_backup.sh ~/.local/bin/restic_check.sh ~/.local/bin/common.sh echo "" echo "Remove configuration files? This includes passwords and settings!" |
