Am 10.02.2012 13:37, schrieb Lentes, Bernd:
Peter schrieb:
jetzt hab ich mal ein "rsync -avn --ignore-existing AG_Huber /mnt/idg2" probiert. Ich verstehe das so, daß -n mir nur die Ordner anzeigt, die kopiert werden. Oder ? Und --ignore-existing nur die kopiert, die auf Ziel fehlen. Aber mein altbekannter "AG_Huber/pictures/Weihnachtsfeier Labor/Clip/" tauch z.B. wieder auf, obwohl der doch schon in Ziel liegt. Was verstehe ich falsch ? Hallo,
Ziemlich weit hinten in der ellenlangen man page steht zu --ignore-existing: ...this does n o t ignore existing directories...
Hi,
diesen Abschnitt finde ich nicht in meiner manpage. Ich habe rsync Version rsync-2.6.8-36.26.28. Die manpage ist vom 22.4.2006. Welche Version hast Du ? In welcher Zeile steht das bei Dir ?
bei mir meldet sich rsync mit version 3.0.7 protocol version 30 und hier etwas länger aus der man page: --ignore-existing This tells rsync to skip updating files that already exist on the destination (this does not ignore existing directories, or nothing would get done). See also --existing. This option is a transfer rule, not an exclude, so it doesn‘t affect the data that goes into the file-lists, and thus it doesn t affect deletions. It just limits the files that the receiver requests to be transferred. This option can be useful for those doing backups using the --link-dest option when they need to continue a backup run that got interrupted. Since a --link-dest run is copied into a new directory hierarchy (when it is used properly), using --ignore-existing will ensure that the already-handled files don‘t get tweaked (which avoids a change in permissions on the hard-linked files). This does mean that this option is only looking at the existing files in the destination hierarchy itself. --existing, --ignore-non-existing This tells rsync to skip creating files (including directories) that do not exist yet on the destination. If this option is combined with the --ignore-existing option, no files will be updated (which can be useful if all you want to do is delete extraneous files). This option is a transfer rule, not an exclude, so it doesn’t affect the data that goes into the file-lists, and thus it doesn‘t affect deletions. It just limits the files that the receiver requests to be transferred
Was bedeutet das denn genau ? Ok, er ignoriert keine Verzeichnisse. Nehmen wir an, in Quelle und Ziel liegt das gleiche Verzeichnis. In Quelle liegen in dem Verzeichnis 5 Dateien, in Ziel 3. Werden dann nur die 2 fehlenden Dateien kopiert, oder wird der ganze Ordner rübergebügelt, egal was mit den Dateien ist ?
Es werden n u r die fehlenden Dateien kopiert, wenn die vorhandenen Dateien wirklich v ö l l i g identisch sind ansonsten werden differierende Teile der Dateien synchronisiert. Ich benutze rsync hauptsächlich für Datensicherung (zusätzlich mit der Option z, da zwischen verschiedenen Rechnern) und da ich ein misstrauischer Mensch bin habe ich das Programm gegen alle alle möglichen Sondersituationen, die mir eingefallen sind gequält und die Sicherung war entweder OK oder sauber abgebrochen und reproduzierbar nicht vorhanden. Das ist natürlich kein Beweis der Fehlerfreiheit, aber ich habe jedenfalls keine neuen Fehler gefunden. Ich kann jetzt nicht mehr genau sagen, mit welcher Version ich eingestiegen bin, aber meine ältesten vorhandenen Backups sind 3 Jahre alt. Die man page bitte langsam und sorgfältig lesen und nicht überfliegen (bitte, das jetzt nicht als Kritik verstehen) , manches ist sehr kompakt formuliert und es kommt oft wie bei einem Gesetzestext auf den letzten Nebensatz an. Tschüß Peter -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um den Listen Administrator zu erreichen, schicken Sie eine Mail an: opensuse-de+owner@opensuse.org