summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e6d4f5e..0dc88b6 100644
--- a/Makefile
+++ b/Makefile
@@ -397,7 +397,7 @@ validate-config:
echo "⚠ Excludes file missing (optional): ~/.config/restic/excludes"; \
fi; \
echo "Testing rclone connection..."; \
- if timeout 30 rclone ls backup_remote: >/dev/null 2>&1; then \
+ if bash -c ". ~/.config/restic/env && timeout 60 rclone ls backup_remote:" >/dev/null 2>&1; then \
echo "✓ Rclone connection successful"; \
else \
echo "✗ Rclone connection failed"; \
@@ -421,7 +421,7 @@ validate-config:
echo "⚠ Excludes file missing (optional): /etc/restic/excludes"; \
fi; \
echo "Testing rclone connection..."; \
- if timeout 30 rclone ls backup_remote: >/dev/null 2>&1; then \
+ if sudo bash -c ". /root/.restic_env && timeout 60 rclone ls backup_remote:" >/dev/null 2>&1; then \
echo "✓ Rclone connection successful"; \
else \
echo "✗ Rclone connection failed"; \