Rsync -delete
Hi,
warum werden Dateien gelöscht, die außerhalb von /mnt/pve/BX60_1/ und /mnt/Backup/ liegen mit dem Befehl :
rsync -n -a --progress --delete -hh --stats --partial -e "ssh -p 2222" /mnt/pve/BX60_1/ root@xyz.net:/mnt/Backup/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.oldascii
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.obs_zeroes
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.lcase
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ibm
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ebcdic
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ascii
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/position.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/misc.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/gen.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/extern.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.1
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/conv_tab.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/conv.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/args.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/format_string_test.sh
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/vary.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/vary.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/netdate.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/extern.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/date.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/date.1
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/iconv_stub.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/iconv_stub.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/config_p.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/config.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/Makefile
/code>
gruß
warum werden Dateien gelöscht, die außerhalb von /mnt/pve/BX60_1/ und /mnt/Backup/ liegen mit dem Befehl :
rsync -n -a --progress --delete -hh --stats --partial -e "ssh -p 2222" /mnt/pve/BX60_1/ root@xyz.net:/mnt/Backup/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.oldascii
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.obs_zeroes
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.lcase
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ibm
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ebcdic
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/ref.ascii
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/position.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/misc.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/gen.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/extern.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/dd.1
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/conv_tab.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/conv.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/args.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/dd/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/format_string_test.sh
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/tests/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/vary.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/vary.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/netdate.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/extern.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/date.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/date.1
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/Makefile
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/date/
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/iconv_stub.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/iconv_stub.c
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/config_p.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/config.h
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/Makefile.depend
deleting iocage/releases/11.3-RELEASE/root/usr/src/bin/csh/Makefile
/code>
gruß
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 565860
Url: https://administrator.de/contentid/565860
Ausgedruckt am: 22.11.2024 um 05:11 Uhr
3 Kommentare
Neuester Kommentar
Moin,
Befindet sich die Struktur iocage/releases/11.3-RELEASE/[...] nicht unterhalb von /mnt/pve/BX60_1/ ?
(Man beachte, dass vor dem iocage kein führender / steht!)
Falls nicht, musst Du nochmal ein paar mehr Details angeben.
Gruß
cykes
Zitat von @achim22:
warum werden Dateien gelöscht, die außerhalb von /mnt/pve/BX60_1/ und /mnt/Backup/ liegen mit dem Befehl :
liegen die Dateien wirklich außerhalb von /mnt/pve/BX60_1/ ?warum werden Dateien gelöscht, die außerhalb von /mnt/pve/BX60_1/ und /mnt/Backup/ liegen mit dem Befehl :
Befindet sich die Struktur iocage/releases/11.3-RELEASE/[...] nicht unterhalb von /mnt/pve/BX60_1/ ?
(Man beachte, dass vor dem iocage kein führender / steht!)
Falls nicht, musst Du nochmal ein paar mehr Details angeben.
Gruß
cykes
Stichwort "Symlinks" sollte dir was sagen.
https://linux.die.net/man/1/rsync
https://linux.die.net/man/1/rsync
Symbolische Links werden aber nur verfolgt, wenn -L als Option angegeben ist. Um auszuschließen, aß ein rsync-Alias definiert ist, das -L als Option hat, sollte man zuerst unalias rsync sagen, bevor man loslegt.
Aber ich vermute, daß die obigen dateien einfach nur in einen Unterordner des Ziels sind und daher gelöscht werden.
Oder in dem Verzeichnis ist noch irgendwo ein Hardlink versteckt.
lks