[Eisfair] Fragen zu rsnapshot
Marcus Roeckrath
marcus.roeckrath at gmx.de
Sa Aug 4 14:04:04 CEST 2018
Hallo Rolf,
Rolf Bensch wrote:
>> Und genau letzteres bekome ich nicht hin /etc wird immer im Ziel
>> erstellt.
>
> Das kann ich NICHT bestätigen:
>
> n36l # which rsync
> /usr/bin/rsync
> n36l # rsync --version
> rsync version 3.1.1 protocol version 31
> Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others.
> Web site: http://rsync.samba.org/
> Capabilities:
> 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
> socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
> append, ACLs, xattrs, iconv, symtimes, prealloc
> ...
> n36l # cd /
> n36l # mkdir Test
> n36l # cd Test
> n36l # echo das ist eine Testdatei > Testdatei.txt
> n36l # cd /tmp
> n36l # mkdir rsynctest
>
> n36l # rsync -a /Test /tmp/rsynctest/
> n36l # ls -l /tmp/rsynctest
> total 4
> drwxr-xr-x 2 root root 4096 Aug 4 13:27 Test
> n36l # rm -rf /tmp/rsynctest/Test/
>
> n36l # rsync -a /Test/ /tmp/rsynctest/
> n36l # ls -l /tmp/rsynctest
> total 4
> -rw-r--r-- 1 root root 23 Aug 4 13:27 Testdatei.txt
Ich hatte mit den rsync-Defaultoptionen von rsnapshot getestet und da macht
genau --relative den Unterschied im Verhalten von rsync aus.
--
Gruss Marcus
Mehr Informationen über die Mailingliste Eisfair