summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsyncrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/syncrepo b/syncrepo
index 9eea4cb..b98ee8f 100755
--- a/syncrepo
+++ b/syncrepo
@@ -13,7 +13,7 @@ touch "${lock}"
trap "rm -f '${lock}'" EXIT INT TERM
rsync -rtlvH --safe-links --delete-after --progress -h \
- --delay-updates --no-motd \
+ --delay-updates --no-motd --bwlimit=1000 \
--temp-dir="${tmp}" \
--exclude='*.links.tar.gz*' \
--exclude='/other' \
@@ -22,4 +22,4 @@ rsync -rtlvH --safe-links --delete-after --progress -h \
${source} \
"${target}"
-echo "Last sync was $(date -d @$(cat repo/lastsync))"
+echo "Last sync was $(date -d @$(cat ${target}/lastsync))"