[Eisfair] Fragen zu rsnapshot

Rolf Bensch azubi at bensch-net.de
Sa Aug 4 13:40:15 CEST 2018


Hallo Marcus,

Am 03.08.2018 um 15:17 schrieb Marcus Roeckrath:
> Hallo Rolf,
> 
> Rolf Bensch wrote:
> 
>> wenn ich mich recht erinnere, "sollte" man bei Ziel möglichst mit einem
>> Slash arbeiten. Bei der Quelle unterscheidet man ob etc in Ziel erstellt
>> wird (ohne Slash) oder nicht (mit slash) - jedenfalls ist das auf den
>> NAS so.
> 
> 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


Grüße Rolf


Mehr Informationen über die Mailingliste Eisfair