summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-25 23:28:39 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-25 23:28:39 +0200
commitf0faecd4d0f37575781865e8dfe82f8eadec135d (patch)
tree275360ee818ef0f1abf3cca49bbcadc1f9d95658
parentf16a290a06d404722d53f6b38e567e340f9d7387 (diff)
downloadrepo-tools-f0faecd4d0f37575781865e8dfe82f8eadec135d.tar.gz
repo-tools-f0faecd4d0f37575781865e8dfe82f8eadec135d.tar.xz
--partial does not work as expected
-rwxr-xr-xsyncrepo5
1 files changed, 2 insertions, 3 deletions
diff --git a/syncrepo b/syncrepo
index e851c0b..b182996 100755
--- a/syncrepo
+++ b/syncrepo
@@ -1,6 +1,6 @@
#!/bin/bash
-home="$(dirname "${0}")"
+home="$(dirname "$(readlink -f $0)")"
target="${home}/repo"
tmp="${home}/tmp"
lock='/tmp/mirrorsync.lck'
@@ -14,9 +14,8 @@ touch "${lock}"
trap "rm -f '${lock}'" EXIT INT TERM
rsync -rtlvH --safe-links --delete-after --progress -h \
- --partial \
- --partial-dir="${tmp}" \
--delay-updates \
+ --temp-dir="${tmp}" \
--exclude='*.abs.tar.gz*' \
--exclude='*.files.tar.gz*' \
--exclude='*.links.tar.gz*' \