Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:backup

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
infrastruktur:backup [12.09.2021 15:46] – angelegt Moritz Welberginfrastruktur:backup [24.09.2022 19:16] (aktuell) – [Backups/snapshots anzeigen] Paul
Zeile 1: Zeile 1:
-Jetzt existierts+====== Backup Doku ======
  
 +**Was noch nicht gebackupped wird (stand 24.09.2022):**
 +
 +   * nextcloud user data (''/mnt/shared/nextcloud'')
 +   * VMs
 +   * Video-server (''/mnt/shared/video'')
 +
 +
 +Folgende Pfade werden gebackupped:
 +
 +   * ''/var/lib/lxc/codi''
 +   * ''/var/lib/lxc/keycloak''
 +   * ''/var/lib/lxc/md''
 +   * ''/var/lib/lxc/openproject''
 +   * ''/var/lib/lxc/redmine''
 +   * ''/var/lib/lxc/spacedeck''
 +   * ''/var/lib/lxc/web''
 +   * ''/var/lib/lxc/dokuwiki''
 +   * ''/var/lib/lxc/keycloak2''
 +   * ''/var/lib/lxc/monitoring''
 +   * ''/var/lib/lxc/pad''
 +   * ''/var/lib/lxc/roundcube''
 +   * ''/var/lib/lxc/thelounge''
 +   * ''/var/lib/lxc/website''
 +   * ''/var/lib/lxc/ffhl-blackbox''
 +   * ''/var/lib/lxc/ldap''
 +   * ''/var/lib/lxc/nbspstatus''
 +   * ''/var/lib/lxc/sediment''
 +   * ''/var/lib/lxc/torproxy''
 +   * ''/var/lib/lxc/whiteboard''
 +   * ''/var/lib/lxc/gitlab''
 +   * ''/var/lib/lxc/mail''
 +   * ''/var/lib/lxc/nextcloud''
 +   * ''/var/lib/lxc/pretix''
 +   * ''/var/lib/lxc/social''
 +   * ''/var/lib/lxc/video''
 +   * ''/var/lib/lxc/zammad''
 +
 +
 +
 +===== Übersicht =====
 +
 +**Ein Backupserver (nbsp-backup) pullt regelmäßig btrfs-snapshots von magrathea.**
 +
 +**Auf Magrathea** sind ist das ''/'' ein [[https://btrfs.wiki.kernel.org/index.php/Main_Page|BTRFS]] Dateisystem. Jeder Container ist ein eigenes subvolumes, dass individuell gesnapshoted werden kann. Es wird jeweils immer der letzte snapshot aufgehoben um inkrementelle Backups zu machen.
 +
 +**Auf nbsp-backup** gibt es einen Backup-VM. In dieser ist das ''/'' ebenfalls ein BTRFS. Das Programm [[https://digint.ch/btrbk/index.html|''btrbk'']] macht täglich automatisch inkrementelle Backups von konfigurierten subvolumes. Dafür nutzt es ssh und ''btrfs-send''/''btrfs-receive''.
 +
 +===== Backup einrichten: =====
 +
 +Um ein Subvolume von Magrathea backuppen zu lassen, muss das Subvolume **auf dem Backupserver** in der Datei ''/etc/btrbk.conf'' ergänzt werden. Um z.B. einen Container zu backuppen, muss diese Zeile zu der Liste hinzugefügt werden:
 +
 +<code>
 +subvolume var/lib/lxc/<container_name>
 +</code>
 +
 +===== Backups/snapshots anzeigen =====
 +
 +**Auf nbsp-backup** liegen alle subvolumes in ''/backups''. Dort kann einfach in die subvolumes ''cd'''t werden und die Dateien angeschaut und kopiert werden.
infrastruktur/backup.1631461563.txt.gz · Zuletzt geändert: 12.09.2021 15:46 von Moritz Welberg