summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-11-21 22:00:10 +0100
committerErich Eckner <git@eckner.net>2016-11-21 22:00:10 +0100
commit5fabe114b02c76cd5dc30d7555a381ed339f1cba (patch)
tree926a2d6662237298d0775d19e8f135fa3e1524b4
parentceb498027783147a54431870b97709611b14c876 (diff)
downloadhardlinkedBackups-5fabe114b02c76cd5dc30d7555a381ed339f1cba.tar.xz
backup sollte jetzt hardlinks auch dann erstellen, wenn permission/owner/timestamp anders sind
-rwxr-xr-xbackup.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/backup.in b/backup.in
index 33a59f3..b8da82f 100755
--- a/backup.in
+++ b/backup.in
@@ -111,16 +111,22 @@ chmod 750 ${neues}
chown erich:root ${neues}
if [ -z "${rsyncShell}" ]
then
- rsync -av -x --no-p --no-o --no-g ${linkdests} \
+ rsync -rlDvx ${linkdests} \
${excludeArgs} \
${Quelle} ${neues}/
sleep 1
+ rsync -avx ${excludeArgs} \
+ ${Quelle} ${neues}/
+ sleep 1
rsync ${Quelle}
else
- rsync "${rsyncShell}" -av -x --no-p --no-o --no-g ${linkdests} \
+ rsync "${rsyncShell}" -rlDvx ${linkdests} \
${excludeArgs} \
${Quelle} ${neues}/
sleep 1
+ rsync "${rsyncShell}" -avx ${excludeArgs} \
+ ${Quelle} ${neues}/
+ sleep 1
rsync "${rsyncShell}" ${Quelle}
fi
erg=$?