summaryrefslogtreecommitdiffstats
path: root/syncrepo
diff options
context:
space:
mode:
Diffstat (limited to 'syncrepo')
-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*' \