diff options
author | Erich Eckner <git@eckner.net> | 2016-11-21 22:00:10 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-11-21 22:00:10 +0100 |
commit | 5fabe114b02c76cd5dc30d7555a381ed339f1cba (patch) | |
tree | 926a2d6662237298d0775d19e8f135fa3e1524b4 | |
parent | ceb498027783147a54431870b97709611b14c876 (diff) | |
download | hardlinkedBackups-5fabe114b02c76cd5dc30d7555a381ed339f1cba.tar.xz |
backup sollte jetzt hardlinks auch dann erstellen, wenn permission/owner/timestamp anders sind
-rwxr-xr-x | backup.in | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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=$? |