From 5fabe114b02c76cd5dc30d7555a381ed339f1cba Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 21 Nov 2016 22:00:10 +0100 Subject: backup sollte jetzt hardlinks auch dann erstellen, wenn permission/owner/timestamp anders sind --- backup.in | 10 ++++++++-- 1 file 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=$? -- cgit v1.2.3-54-g00ecf