Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.os.unix.linux.misc > #131496

Re: USB-Automatik

From Marcus Jodorf <m@bogomips.de>
Newsgroups de.comp.os.unix.linux.misc
Subject Re: USB-Automatik
Date 2023-06-17 22:51 +0200
Organization n/a
Message-ID <87wn01ols7.fsf-bofh@killfile.de> (permalink)
References (7 earlier) <kf0dl0Fps6kU1@mid.individual.net> <Backups-20230615210500@ram.dialup.fu-berlin.de> <877cs4jnye.fsf-bofh@killfile.de> <u6h1ne$g1v6$1@yggdrasil.dn.cgarbs.de> <u6i607$1gs8l$1@news.nnpt4.net>

Show all headers | View raw


SimplyNews <Simply.News@gmx.de> schrieb:

> Das ist interessant, weil wir die Frage, wie man eine Liste der
> geänderten und neuen Dateien (eines Verzeichnisses u/o eines
> Dateisystems) -- und nur von diesen! -- erhalten kann, erst in dem
> Thread "inkrementelles Backup mit Snapshots" hatten.

zfs diff zroot/ROOT/debian@snap_20230617_154302_000 zroot/ROOT/debian@snap_20230617_164302_000 
M	/var/lib/dhcp/dhclient.enp1s0f0.leases
M	/tmp
+	/var/lib/samba/dhcp.conf
+	/tmp/systemd-private-f338099a2a40470b8690fcf892e90ed8-systemd-hostnamed.service-I8Xdrs
+	/tmp/systemd-private-f338099a2a40470b8690fcf892e90ed8-systemd-hostnamed.service-I8Xdrs/tmp
+	/var/tmp/systemd-private-f338099a2a40470b8690fcf892e90ed8-systemd-hostnamed.service-VtpDGn
+	/var/tmp/systemd-private-f338099a2a40470b8690fcf892e90ed8-systemd-hostnamed.service-VtpDGn/tmp
-	/var/lib/samba/dhcp.conf
M	/var/lib/samba

> Es kam u.a. heraus, dass auch ein btrfs-send keinen 'differentiellen
> Snapshot' erzeugt, sondern nur mit Hilfe eines Eltern-Snapshots
> (Option '-p') sozusagen differentiell überträgt, aber auf der
> Empfangsseite (btrfs-receive) den Snapshot komplett rekonstruiert. Es
> wäre aber wenigstens die o.g. Liste erwünscht gewesen.

Ich vermute, Du hast das noch nicht völlig verstanden.

Ein Snapshot stellt immer ein komplettes Filesystem zu einem bestimmten
Zeitpunkt dar, wenn man die Inhalte sichtbar macht. Ein Snapshot selber
ist nur ein Abbild der Metadaten zum Zeitpunkt X.
Das heißt jeder Snapshot, den Du mountest bzw. dessen Inhalte Du
sichtbar machst, zeigt Dir immer das gesamte Filesystem zum gegebenen
Zeitpunkt. Das liegt in der Natur der Sache von Snapshots.

Um von den Inhalten von Zeitpunkt A auf Zeitpunkt B zu kommen, reicht
natürlich einfach die Differenz der Daten. Wir reden hier von COW
Filesystemen - da ist intern quasi ohnehin alles nur Differenzen der
Metadaten.
Insofern wird da nicht wirklich etwas „rekonstruiert“.

Du überträgst den Snapshot vom Zeitpunkt A auf einen anderen Rechner. Da
dort noch nichts ist, muß Snapshot A eine volle Kopie des Filesystems
sein. Metadaten und alle Datenblöcke.
Zum Zeitpunkt B überträgst Du wieder einen Snapshot. Da Snapshot A schon
am Ziel vorhanden ist, reicht es, die Differenz zwischen Snapshot A und
B zu übertragen (also neues Abbild der Metadaten zum Zeitpunkt B und die
geänderten Datenblöcke zwischen A und B) und Du hast dann auch auf dem
Ziel beide Snapshots. Da wird allerdings nichts „rekonstruiert“, sondern
quasi nur die geänderten Datenblöcke ins Filesystem eingebaut und die
neuen Metadaten abgespeichert, denn auch auf der Quelle sind die ganzen
Snapshots einfach nur die Differenzdaten bzw. Abbilder der Metadaten zu
einem Zeitpunkt X.

Deshalb geht das auch alles „instant“.
Wenn B als Differenz auf dem Ziel angekommen ist, dann ist dort Snapshot
B sofort vollwertig vorhanden. Du kannst dann auch auf dem Ziel einfach
A löschen und B ist dennoch immer noch vollständig vorhanden. Weil wenn
Du A löschst, wird nur das Abbild der Metadaten zum Zeitpunkt A
gelöscht.


Gruß,

Marcus
⚂⚃

Back to de.comp.os.unix.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-14 17:52 +0200
  Re: USB-Automatik Joerg Lorenz <hugybear@gmx.ch> - 2023-06-14 18:23 +0200
    Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-14 19:09 +0200
      Re: USB-Automatik Arno Lutz <invalid@freakmail.de> - 2023-06-14 20:41 +0200
        Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-14 21:35 +0200
          Re: USB-Automatik "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2023-06-15 02:20 +0200
            Re: USB-Automatik Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2023-06-15 06:38 +0000
              Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 14:14 +0200
                Re: USB-Automatik Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2023-06-15 13:29 +0000
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 16:53 +0200
                Re: USB-Automatik Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2023-06-15 20:29 +0000
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-16 02:03 +0200
                Re: USB-Automatik Tim Ritberg <tim@server.invalid> - 2023-06-15 15:48 +0200
                Re: USB-Automatik Joerg Lorenz <hugybear@gmx.ch> - 2023-06-15 19:44 +0200
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 19:54 +0200
                Re: USB-Automatik Tim Ritberg <tim@server.invalid> - 2023-06-15 22:21 +0200
                Re: USB-Automatik Marcus Jodorf <m@bogomips.de> - 2023-06-16 01:38 +0200
                Re: USB-Automatik Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2023-06-16 05:52 +0000
                Re: USB-Automatik Christian Garbs <mitch@cgarbs.de> - 2023-06-16 07:07 +0000
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-16 11:44 +0200
                Re: USB-Automatik Christian Garbs <mitch@cgarbs.de> - 2023-06-18 11:17 +0000
                Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-16 19:26 +0200
                Re: USB-Automatik Marcus Jodorf <m@bogomips.de> - 2023-06-17 22:51 +0200
                Betreffwechsel bei Themenwechsel erwünscht? (was: USB-Automatik) Helmut Waitzmann <nn.throttle@xoxy.net> - 2023-06-17 23:27 +0200
                syncthing für große Backups (was: Re: USB-Automatik) Christian Garbs <mitch@cgarbs.de> - 2023-06-18 09:57 +0000
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-16 11:38 +0200
                Re: USB-Automatik "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2023-06-16 17:34 +0200
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-16 18:30 +0200
                Re: USB-Automatik Christian Garbs <mitch@cgarbs.de> - 2023-06-18 10:04 +0000
                Re: USB-Automatik Marcus Jodorf <m@bogomips.de> - 2023-06-17 23:04 +0200
                Re: USB-Automatik Hermann Riemann <nospam.ng@hermann-riemann.de> - 2023-06-18 12:01 +0200
                Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-19 10:14 +0200
                Re: USB-Automatik Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2023-06-16 12:18 +0000
                Re: USB-Automatik Wolfgang Bauer <wolfgang-bauer@mein.gmx> - 2023-06-16 14:30 +0200
                Re: USB-Automatik Hermann Riemann <nospam.ng@hermann-riemann.de> - 2023-06-16 12:40 +0200
  Re: USB-Automatik Hermann Riemann <nospam.ng@hermann-riemann.de> - 2023-06-14 18:32 +0200
    Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-14 19:20 +0200
      Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-15 16:42 +0200
        Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 17:02 +0200
        Re: USB-Automatik "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2023-06-15 18:37 +0200
          Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-16 18:29 +0200
            Re: USB-Automatik "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2023-06-17 09:20 +0200
            Re: USB-Automatik Marcus Jodorf <m@bogomips.de> - 2023-06-17 21:49 +0200
  Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-15 16:29 +0200
    Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-15 16:55 +0200
      Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 17:22 +0200
        Re: USB-Automatik SimplyNews <Simply.News@gmx.de> - 2023-06-15 17:34 +0200
          Re: USB-Automatik Matthias Gerds <m.gerds@posteo.de> - 2023-06-15 18:37 +0200

csiph-web