From 974f604efdb2e4db4f67bb28322bf44f73e81a0d Mon Sep 17 00:00:00 2001 From: dwrz Date: Thu, 22 Oct 2026 12:50:01 +0000 Subject: [PATCH] Stagger and limit timelapse sync transfers --- scripts/sync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/sync b/scripts/sync index 52f58ec..e4a766e 100755 --- a/scripts/sync +++ b/scripts/sync @@ -8,7 +8,11 @@ main() { local name name="$(basename "${filepath}")" - rsync --archive --verbose \ + # Stagger transfers to avoid congestion at the hour mark. + sleep $((RANDOM % 180)) + + # Limit bandwidth so the backup does not saturate the connection. + rsync --archive --verbose --bwlimit=4096 \ "${HOME}/timelapse/${name}" \ "${RSYNC_USER}@${RSYNC_SERVER}:/timelapse/${name}"