Stagger and limit timelapse sync transfers

This commit is contained in:
dwrz
2026-10-22 12:50:01 +00:00
parent 6ef6f554ce
commit 974f604efd
+5 -1
View File
@@ -8,7 +8,11 @@ main() {
local name local name
name="$(basename "${filepath}")" 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}" \ "${HOME}/timelapse/${name}" \
"${RSYNC_USER}@${RSYNC_SERVER}:/timelapse/${name}" "${RSYNC_USER}@${RSYNC_SERVER}:/timelapse/${name}"