summaryrefslogtreecommitdiffstats
path: root/syncrepo
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-23 10:41:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-23 10:41:20 +0200
commit012a236db2bc1914144b6ef055ddd7bf05001195 (patch)
tree5daf17a3ec38bf78838ac3bccf78fa55e8faa3fa /syncrepo
parent7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff (diff)
downloadrepo-tools-012a236db2bc1914144b6ef055ddd7bf05001195.tar.gz
repo-tools-012a236db2bc1914144b6ef055ddd7bf05001195.tar.xz
Fix dir; set limit
Diffstat (limited to 'syncrepo')
-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))"