From 23f314175760993870edf84548c3e286fb21fc78 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 26 Oct 2026 20:58:22 +0100 Subject: [PATCH] docs: translate README to English and align structure Co-Authored-By: Claude Opus 5.5 --- README.md | 1027 ++++++++++++++++++++++------------------------------- 1 file changed, 429 insertions(+), 598 deletions(-) diff --git a/README.md b/README.md index d37dcfa..cda83f1 100644 --- a/README.md +++ b/README.md @@ -1,87 +1,92 @@ # NetBox Backup, Restore & Upgrade Tool -Ein interaktives Python-Werkzeug zur Sicherung, Wiederherstellung und Aktualisierung einer NetBox-Installation unter Linux. +An interactive Python tool to back up, restore and upgrade a NetBox +installation on Linux. -Das Skript kombiniert folgende Aufgaben in einer einfachen Terminal-Oberfläche: - -- PostgreSQL-Datenbank sichern -- NetBox-Media-Dateien sichern -- Backups als ZIP-Datei speichern -- Datenbank und Media-Dateien wiederherstellen -- Neue NetBox-Releases herunterladen und installieren -- Konfiguration, LDAP-Einstellungen, Plugins, Media-Dateien, Reports und Custom Scripts übernehmen -- NetBox-Dienste stoppen, starten und überprüfen -- Die bisherige Installation für einen möglichen Rollback aufbewahren +| | | +|---|---| +| **Type** | Interactive command-line tool (Python, standard library only) | +| **Platform** | Linux server running NetBox, with `systemd` | +| **Python** | `>=3.8` | +| **Repository** | | > [!IMPORTANT] -> Dieses Projekt ist kein offizielles Werkzeug des NetBox-Projekts. Teste Backup, Restore und Upgrade zuerst auf einer Testinstanz. Ein aktuelles, extern gespeichertes Backup sollte vor jedem Upgrade vorhanden sein. +> This is not an official tool of the NetBox project. Test backup, restore and +> upgrade on a test instance first. Keep a current, externally stored backup +> before every upgrade. ---- +## Contents -## Inhaltsverzeichnis +1. [Features](#features) +2. [Requirements](#requirements) +3. [Installation](#installation) +4. [Quick start](#quick-start) +5. [Configuration](#configuration) +6. [Creating a backup](#creating-a-backup) +7. [Restoring a backup](#restoring-a-backup) +8. [Upgrading NetBox](#upgrading-netbox) +9. [Carried-over files and directories](#carried-over-files-and-directories) +10. [Plugins and LDAP](#plugins-and-ldap) +11. [CSRF trusted origins](#csrf-trusted-origins) +12. [Rollback behaviour](#rollback-behaviour) +13. [Backup layout](#backup-layout) +14. [Troubleshooting](#troubleshooting) +15. [Security notes](#security-notes) +16. [Known limitations](#known-limitations) -1. [Voraussetzungen](#voraussetzungen) -2. [Installation](#installation) -3. [Schnellstart](#schnellstart) -4. [Konfiguration](#konfiguration) -5. [Backup erstellen](#backup-erstellen) -6. [Backup wiederherstellen](#backup-wiederherstellen) -7. [NetBox upgraden](#netbox-upgraden) -8. [Übernommene Dateien und Verzeichnisse](#übernommene-dateien-und-verzeichnisse) -9. [Plugins und LDAP](#plugins-und-ldap) -10. [CSRF Trusted Origins](#csrf-trusted-origins) -11. [Rollback-Verhalten](#rollback-verhalten) -12. [Backup-Aufbau](#backup-aufbau) -13. [Troubleshooting](#troubleshooting) -14. [Sicherheitshinweise](#sicherheitshinweise) -15. [Bekannte Einschränkungen](#bekannte-einschränkungen) +The tool's menus and prompts are in German; this README quotes them verbatim +with an English translation. ---- +## Features -## Voraussetzungen +- Back up the PostgreSQL database +- Back up NetBox media files +- Store backups as a ZIP file +- Restore database and media files +- Download and install new NetBox releases +- Carry over configuration, LDAP settings, plugins, media files, reports and + custom scripts +- Stop, start and check the NetBox services +- Keep the previous installation for a possible rollback -### Betriebssystem +## Requirements -Das Tool ist für eine klassische NetBox-Installation unter Linux vorgesehen. Die Upgrade-Funktion benötigt: +### Operating system -- Linux beziehungsweise ein POSIX-System +The tool targets a classic NetBox installation on Linux. The upgrade function +requires: + +- Linux or another POSIX system - `systemd` -- Root-Rechte -- Schreibzugriff auf `/opt` -- Internetzugriff auf GitHub +- root privileges +- write access to `/opt` +- internet access to GitHub ### Python -- Python 3.8 oder neuer empfohlen -- Es werden ausschließlich Module aus der Python-Standardbibliothek verwendet -- Zusätzliche Python-Pakete sind für das Tool selbst nicht erforderlich +- Python 3.8 or newer recommended +- Only modules from the Python standard library are used +- No additional Python packages are required for the tool itself -### Systemprogramme +### System programs -Folgende Programme müssen verfügbar sein: - -| Programm | Verwendung | +| Program | Used for | |---|---| -| `pg_dump` | PostgreSQL-Datenbank sichern | -| `pg_restore` | PostgreSQL-Dump wiederherstellen | -| `dropdb` | Vorhandene Zieldatenbank beim Restore löschen | -| `createdb` | Zieldatenbank neu erstellen | -| `systemctl` | NetBox-Dienste stoppen und starten | -| `cp` | Konfiguration und lokale Daten beim Upgrade übernehmen | -| `chown` | Eigentümer der wiederhergestellten Media-Dateien setzen | -| `git` | Optional zur Erkennung der installierten NetBox-Version | +| `pg_dump` | Back up the PostgreSQL database | +| `pg_restore` | Restore a PostgreSQL dump | +| `dropdb` | Drop the existing target database on restore | +| `createdb` | Re-create the target database | +| `systemctl` | Stop and start the NetBox services | +| `cp` | Carry over configuration and local data on upgrade | +| `chown` | Set the owner of restored media files | +| `git` | Optional, to detect the installed NetBox version | -Unter Debian oder Ubuntu können die PostgreSQL-Clientprogramme beispielsweise über das Paket `postgresql-client` bereitgestellt werden. +On Debian or Ubuntu, the PostgreSQL client programs are provided by the +`postgresql-client` package, for example. -### NetBox-Verzeichnisstruktur +### NetBox directory layout -Standardmäßig erwartet das Tool NetBox unter: - -```text -/opt/netbox -``` - -Dabei werden unter anderem folgende Pfade erwartet: +By default the tool expects NetBox under `/opt/netbox`, including: ```text /opt/netbox/upgrade.sh @@ -89,24 +94,22 @@ Dabei werden unter anderem folgende Pfade erwartet: /opt/netbox/netbox/media/ ``` -`/opt/netbox` darf entweder ein normales Verzeichnis oder ein Symlink auf ein versionsbezogenes Verzeichnis sein. +`/opt/netbox` may be a regular directory or a symlink to a versioned directory. -### NetBox-Dienste +### NetBox services -Das Skript verwendet standardmäßig diese Service-Namen: +The script uses these service names by default: ```text netbox netbox-rq ``` -Bei abweichenden Unit-Namen muss die Konstante `NETBOX_SERVICES` im Skript angepasst werden. - ---- +For different unit names, adjust the `NETBOX_SERVICES` constant in the script. ## Installation -Skript nach `/usr/local/sbin` oder in ein anderes geeignetes Verzeichnis kopieren: +Copy the script to `/usr/local/sbin` or another suitable directory: ```bash sudo cp netbox_backup_restore_upgrade.py /usr/local/sbin/netbox-tool @@ -114,30 +117,28 @@ sudo chmod 750 /usr/local/sbin/netbox-tool sudo chown root:root /usr/local/sbin/netbox-tool ``` -Anschließend starten: +Then start it: ```bash sudo /usr/local/sbin/netbox-tool ``` -Alternativ direkt aus dem aktuellen Ordner: +Or run it directly from the current folder: ```bash chmod +x netbox_backup_restore_upgrade.py sudo ./netbox_backup_restore_upgrade.py ``` -Optional kann vorab die Python-Syntax geprüft werden: +Optionally check the Python syntax first: ```bash python3 -m py_compile netbox_backup_restore_upgrade.py ``` ---- +## Quick start -## Schnellstart - -Nach dem Start erscheint das Hauptmenü: +After starting, the main menu appears: ```text ============================================================ @@ -151,21 +152,22 @@ Nach dem Start erscheint das Hauptmenü: 5. Beenden ``` -Empfohlene Reihenfolge vor einem Upgrade: +(1 create backup, 2 restore backup, 3 upgrade NetBox, 4 check/adjust settings, +5 quit) -1. Einstellungen kontrollieren. -2. Vollständiges Datenbank- und Media-Backup erstellen. -3. Backup-Datei auf ein anderes System kopieren. -4. Release Notes der Zielversion lesen. -5. Plugin-Kompatibilität prüfen. -6. Upgrade starten. -7. Weboberfläche, Worker, Plugins und Logs kontrollieren. +Recommended order before an upgrade: ---- +1. Check the settings. +2. Create a full database and media backup. +3. Copy the backup file to another system. +4. Read the release notes of the target version. +5. Check plugin compatibility. +6. Start the upgrade. +7. Check web interface, worker, plugins and logs. -## Konfiguration +## Configuration -Die Standardwerte befinden sich am Anfang des Skripts: +The defaults are at the top of the script: ```python CONFIG = { @@ -179,89 +181,82 @@ CONFIG = { } ``` -### Konfigurationswerte - -| Schlüssel | Beschreibung | Standard | +| Key | Description | Default | |---|---|---| -| `netbox_path` | Aktiver NetBox-Installationspfad | `/opt/netbox` | -| `db_host` | PostgreSQL-Server | `localhost` | -| `db_name` | Name der NetBox-Datenbank | `netbox` | -| `db_user` | PostgreSQL-Benutzer | `netbox` | -| `db_pass` | PostgreSQL-Passwort | leer | -| `backup_dir` | Ziel für Backups und temporäre Archive | `/tmp` | -| `python_path` | Optionaler Python-Interpreter für `upgrade.sh` | leer | +| `netbox_path` | Active NetBox installation path | `/opt/netbox` | +| `db_host` | PostgreSQL server | `localhost` | +| `db_name` | Name of the NetBox database | `netbox` | +| `db_user` | PostgreSQL user | `netbox` | +| `db_pass` | PostgreSQL password | empty | +| `backup_dir` | Target for backups and temporary archives | `/tmp` | +| `python_path` | Optional Python interpreter for `upgrade.sh` | empty | -### Python-Version für das Upgrade festlegen +### Python version for the upgrade -Normalerweise verwendet `upgrade.sh` den passenden Standardinterpreter. Falls eine bestimmte Python-Version benötigt wird, kann sie angegeben werden: +Normally `upgrade.sh` uses the appropriate default interpreter. If a specific +Python version is required, set it: ```python "python_path": "/usr/bin/python3.12", ``` -Das Skript setzt dann beim Aufruf von `upgrade.sh` die Umgebungsvariable `PYTHON`. +The script then sets the `PYTHON` environment variable when calling +`upgrade.sh`. -### Datenbankpasswort +### Database password -Ist `db_pass` gesetzt, wird es für PostgreSQL-Befehle über die Umgebungsvariable `PGPASSWORD` bereitgestellt. +If `db_pass` is set, it is passed to the PostgreSQL commands via the +`PGPASSWORD` environment variable. -Aus Sicherheitsgründen ist eine PostgreSQL-Passwortdatei häufig besser geeignet: +For security, a PostgreSQL password file is often better suited: +`/root/.pgpass`, for example ```text -/root/.pgpass +localhost:5432:netbox:netbox:MY_PASSWORD ``` -Beispiel: - -```text -localhost:5432:netbox:netbox:MEIN_PASSWORT -``` - -Berechtigungen setzen: +with permissions ```bash chmod 600 /root/.pgpass ``` -Danach kann `db_pass` im Skript leer bleiben. +`db_pass` can then stay empty in the script. > [!NOTE] -> Änderungen über das Menü **Einstellungen prüfen / anpassen** gelten nur für den aktuell laufenden Prozess. Sie werden nicht dauerhaft in einer Datei gespeichert. Für dauerhafte Änderungen muss der `CONFIG`-Block im Skript angepasst werden. +> Changes made via **Einstellungen prüfen / anpassen** (check/adjust settings) +> apply only to the running process and are not saved to a file. For permanent +> changes, edit the `CONFIG` block in the script. ---- +## Creating a backup -## Backup erstellen +Choose `1. Backup erstellen` in the main menu. -Im Hauptmenü auswählen: +### Options -```text -1. Backup erstellen -``` +The tool asks whether to back up: -### Auswahlmöglichkeiten +- the PostgreSQL database +- media files -Das Tool fragt, ob folgende Komponenten gesichert werden sollen: +For the database backup, the data of certain tables can be skipped. -- PostgreSQL-Datenbank -- Media-Dateien +### Skipping the changelog -Beim Datenbank-Backup können zusätzlich Daten bestimmter Tabellen ausgelassen werden. - -### Changelog auslassen - -Bei Auswahl dieser Option wird der Inhalt der Tabelle `extras_objectchange` nicht exportiert: +With this option, the contents of the `extras_objectchange` table are not +exported: ```text Changelog (extras_objectchange) auslassen? Spart viel Platz. (j/N) ``` -Die Tabellenstruktur bleibt im Dump erhalten. Nur die darin gespeicherten Daten werden übersprungen. +(Skip changelog? Saves a lot of space. y/N.) The table structure stays in the +dump; only its data is skipped. This can reduce the backup size considerably +when change logging is extensive. -Diese Option kann die Backup-Größe deutlich reduzieren, wenn die Änderungsprotokollierung sehr umfangreich ist. +### Skipping users -### Benutzer auslassen - -Folgende Tabelleninhalte werden dabei nicht exportiert: +The contents of these tables are not exported: ```text auth_user @@ -270,92 +265,73 @@ users_token ``` > [!WARNING] -> Das Auslassen von Benutzern kann beim Restore zu Fremdschlüsselproblemen oder fehlenden Zuordnungen führen. Verwende diese Option nur, wenn das Zielsystem bereits passende Benutzer besitzt oder du die Folgen genau kennst. +> Skipping users can lead to foreign-key problems or missing assignments on +> restore. Only use this option if the target system already has matching +> users or you know the consequences exactly. -### Backup-Datei +### Backup file -Die Datei wird nach folgendem Schema erzeugt: +The file is named after this pattern: ```text netbox_backup_YYYYMMDD_HHMMSS.zip ``` -Beispiel: +for example `/tmp/netbox_backup_20260720_143500.zip`. On success, the tool +shows the full path. -```text -/tmp/netbox_backup_20260720_143500.zip -``` - -Nach erfolgreicher Erstellung zeigt das Tool den vollständigen Pfad an. - -### Backup anschließend prüfen - -Datei anzeigen: +### Verifying the backup ```bash ls -lh /tmp/netbox_backup_*.zip -``` - -ZIP-Inhalt prüfen: - -```bash unzip -l /tmp/netbox_backup_20260720_143500.zip -``` - -Prüfsumme erzeugen: - -```bash sha256sum /tmp/netbox_backup_20260720_143500.zip ``` -Backup auf einen externen Speicher kopieren: +Copy the backup to external storage: ```bash scp /tmp/netbox_backup_20260720_143500.zip backupserver:/srv/backups/netbox/ ``` -Ein Backup sollte nicht ausschließlich unter `/tmp` verbleiben. Je nach Systemkonfiguration kann dieses Verzeichnis beim Neustart geleert werden. +Do not leave a backup only in `/tmp`; depending on the system configuration, +this directory may be cleared on reboot. ---- +## Restoring a backup -## Backup wiederherstellen - -Im Hauptmenü auswählen: - -```text -2. Backup wiederherstellen -``` +Choose `2. Backup wiederherstellen` in the main menu. > [!CAUTION] -> Der Restore überschreibt die vorhandenen Daten der Zielinstanz. Die konfigurierte PostgreSQL-Datenbank wird gelöscht und neu erstellt. +> Restoring overwrites the existing data of the target instance. The configured +> PostgreSQL database is dropped and re-created. -### Ablauf +### Steps -1. Sicherheitsabfrage bestätigen. -2. Vollständigen Pfad zur ZIP-Datei eingeben. -3. Das Archiv wird in ein temporäres Verzeichnis entpackt. -4. `metadata.json` wird geprüft. -5. Falls enthalten, wird die Datenbank gelöscht und neu erstellt. -6. Der PostgreSQL-Dump wird importiert. -7. Falls enthalten, werden Media-Dateien ersetzt. -8. `upgrade.sh` wird ausgeführt. -9. `netbox` und `netbox-rq` werden neu gestartet. +1. Confirm the safety prompt. +2. Enter the full path to the ZIP file. +3. The archive is extracted into a temporary directory. +4. `metadata.json` is checked. +5. If included, the database is dropped and re-created. +6. The PostgreSQL dump is imported. +7. If included, media files are replaced. +8. `upgrade.sh` is run. +9. `netbox` and `netbox-rq` are restarted. -### Benötigte Datenbankrechte +### Required database privileges -Der konfigurierte Datenbankbenutzer muss für den Restore ausreichende Rechte besitzen. Insbesondere müssen `dropdb` und `createdb` mit diesem Benutzer funktionieren. - -Test: +The configured database user needs sufficient privileges for the restore; in +particular, `dropdb` and `createdb` must work with this user. Check with: ```bash sudo -u postgres psql -c "\du" ``` -Falls der NetBox-Datenbankbenutzer keine Datenbanken erstellen darf, muss der Ablauf angepasst oder ein administrativer PostgreSQL-Benutzer verwendet werden. +If the NetBox database user may not create databases, adapt the procedure or +use an administrative PostgreSQL user. -### Restore-Befehl im Hintergrund +### Restore command -Der Dump wird sinngemäß so importiert: +The dump is imported roughly like this: ```bash pg_restore \ @@ -367,129 +343,93 @@ pg_restore \ netbox_database.dump ``` -Meldungen von `pg_restore` werden angezeigt. Da PostgreSQL auch bei einzelnen Warnungen einen Rückgabecode ungleich null liefern kann, meldet das Tool den Restore als abgeschlossen und gibt vorhandene Hinweise aus. Kontrolliere anschließend die Datenbank und die NetBox-Logs. +Messages from `pg_restore` are shown. Since PostgreSQL may return a non-zero +exit code even for individual warnings, the tool reports the restore as +finished and prints any notices. Check the database and the NetBox logs +afterwards. -### Media-Dateien +### Media files -Vorhandene Media-Dateien unter folgendem Pfad werden ersetzt: +Existing media files under `/opt/netbox/netbox/media` are replaced, and their +owner is then set to `netbox:netbox`. -```text -/opt/netbox/netbox/media -``` +## Upgrading NetBox -Danach setzt das Tool den Eigentümer auf: +Choose `3. NetBox upgraden` in the main menu. The upgrade must be run as +`root` or with `sudo`. -```text -netbox:netbox -``` +### Target version ---- +The version can be entered with or without a leading `v`, for example `4.6.5` +or `v4.6.5`. Only stable version numbers in the format `X.Y.Z` are accepted; +pre-releases such as `4.6.0-beta1` are rejected. -## NetBox upgraden +### Version check -Im Hauptmenü auswählen: +The tool tries to detect the installed NetBox version via: -```text -3. NetBox upgraden -``` +- the name of the actual installation directory +- an exact Git tag +- the NetBox Python package in the existing virtual environment +- NetBox version files -Die Upgrade-Funktion muss als `root` oder mit `sudo` ausgeführt werden. +The target version must be higher than the detected installed version. +Downgrades are not automated. A detected major-version jump triggers an +additional warning. -### Zielversion +### Upgrade steps -Die Version kann mit oder ohne vorangestelltes `v` eingegeben werden: +1. Validate the target version. +2. Check the existing NetBox installation. +3. Ask for confirmation of backup and release notes. +4. Optionally add the preconfigured plugins. +5. Detect the LDAP configuration. +6. Check or add `CSRF_TRUSTED_ORIGINS`. +7. Download the release archive from GitHub. +8. Safely extract and check the TAR archive. +9. Carry over local files and directories. +10. Stop the services. +11. Switch installation directories or the symlink. +12. Run `/opt/netbox/upgrade.sh`. +13. Restart the services. +14. Check the service status. +15. Keep the old installation as a fallback. -```text -4.6.5 -``` +### Download address -oder: - -```text -v4.6.5 -``` - -Akzeptiert werden ausschließlich stabile Versionsnummern im Format: - -```text -X.Y.Z -``` - -Pre-Releases wie `4.6.0-beta1` werden nicht akzeptiert. - -### Versionsprüfung - -Das Tool versucht die installierte NetBox-Version über mehrere Methoden zu erkennen: - -- Name des tatsächlichen Installationsverzeichnisses -- exaktes Git-Tag -- NetBox-Python-Paket im vorhandenen virtuellen Environment -- NetBox-Versionsdateien - -Die Zielversion muss höher als die erkannte installierte Version sein. Downgrades werden nicht automatisiert. - -Bei einem erkannten Major-Sprung gibt das Tool eine zusätzliche Warnung aus. - -### Upgrade-Ablauf - -Das Tool führt folgende Schritte durch: - -1. Zielversion validieren. -2. Bestehende NetBox-Installation prüfen. -3. Bestätigung für Backup und Release Notes verlangen. -4. Optional die vorkonfigurierten Plugins ergänzen. -5. LDAP-Konfiguration erkennen. -6. `CSRF_TRUSTED_ORIGINS` prüfen oder ergänzen. -7. Release-Archiv von GitHub herunterladen. -8. TAR-Archiv sicher entpacken und prüfen. -9. Lokale Dateien und Verzeichnisse übernehmen. -10. Dienste stoppen. -11. Installationsverzeichnisse beziehungsweise Symlink umschalten. -12. `/opt/netbox/upgrade.sh` ausführen. -13. Dienste neu starten. -14. Dienststatus prüfen. -15. Alte Installation als Rückfalloption behalten. - -### Download-Adresse - -Das Release wird nach diesem Schema geladen: +The release is downloaded from: ```text https://github.com/netbox-community/netbox/archive/refs/tags/vX.Y.Z.tar.gz ``` -Das temporäre Archiv wird nach dem Upgrade wieder gelöscht. +The temporary archive is deleted after the upgrade. ### Downtime -Download, Entpacken und die Vorbereitung der neuen Installation erfolgen vor dem Stoppen der Dienste. Die eigentliche Downtime beginnt erst bei der Umschaltung auf die neue Installation. +Download, extraction and preparation of the new installation happen before the +services are stopped. Downtime only starts when switching to the new +installation. -### Dienste +### Services -Vor der Umschaltung werden folgende Dienste gestoppt: +`netbox` and `netbox-rq` are stopped before the switch. After a successful +`upgrade.sh`, both are restarted and checked with `systemctl is-active`. -```text -netbox -netbox-rq -``` +## Carried-over files and directories -Nach erfolgreichem `upgrade.sh` werden beide Dienste neu gestartet und mit `systemctl is-active` geprüft. +On upgrade, these contents are copied from the existing installation into the +new release. ---- - -## Übernommene Dateien und Verzeichnisse - -Beim Upgrade werden folgende Inhalte aus der bestehenden Installation in das neue Release kopiert. - -### Pflichtdatei +### Required file ```text netbox/netbox/configuration.py ``` -Fehlt diese Datei, wird das Upgrade abgebrochen. +If this file is missing, the upgrade is aborted. -### Optionale Dateien +### Optional files ```text netbox/netbox/ldap_config.py @@ -497,9 +437,7 @@ local_requirements.txt gunicorn.py ``` -Fehlende optionale Dateien führen nicht zum Abbruch. - -### Optionale Verzeichnisse +### Optional directories ```text netbox/media/ @@ -507,29 +445,24 @@ netbox/scripts/ netbox/reports/ ``` -Die Inhalte werden unter Erhaltung von Rechten, Zeitstempeln und symbolischen Eigenschaften mit `cp -a` kopiert. +Contents are copied with `cp -a`, preserving permissions, timestamps and +symbolic links. -### Nicht automatisch übernommene Anpassungen +### Customisations that are not carried over -Manuelle Änderungen an Dateien aus dem eigentlichen NetBox-Quellcode werden nicht automatisch erkannt oder zusammengeführt. Dazu zählen beispielsweise direkt modifizierte Templates, Python-Dateien oder statische Dateien außerhalb der oben genannten Pfade. +Manual changes to files of the NetBox source code itself are not detected or +merged — for example directly modified templates, Python files or static files +outside the paths above. Implement such changes as a plugin, custom script or +through a documented deployment process. -Solche Änderungen sollten als Plugin, Custom Script oder über einen dokumentierten Deployment-Prozess umgesetzt werden. +## Plugins and LDAP ---- +### Existing requirements -## Plugins und LDAP - -### Vorhandene Requirements - -Eine bestehende Datei wird übernommen: - -```text -/opt/netbox/local_requirements.txt -``` - -Vorhandene Einträge bleiben erhalten. Das Tool versucht Paketnamen zu erkennen und fügt ein Paket nicht erneut hinzu, wenn bereits ein unversionierter oder gepinnter Eintrag existiert. - -Beispiele, die als dasselbe Paket erkannt werden: +An existing `/opt/netbox/local_requirements.txt` is carried over and its +entries are kept. The tool recognises package names and does not add a package +again if an unversioned or pinned entry already exists. These are treated as +the same package: ```text netbox-topology-views @@ -537,9 +470,10 @@ netbox-topology-views==4.2.1 netbox_topology_views>=4.0 ``` -### Vorkonfigurierte Plugins +### Preconfigured plugins -Auf Wunsch ergänzt das Tool folgende Einträge: +On request, the tool adds the entries of the `DEFAULT_PLUGIN_REQUIREMENTS` +constant, which ships with: ```text netbox-topology-views @@ -551,157 +485,129 @@ netbox-inventory git+https://git.mrblake.cc/MrBlake/NetBox-VM-Import.git#egg=netbox_vmware_importer ``` -Diese Liste befindet sich in der Konstante: - -```python -DEFAULT_PLUGIN_REQUIREMENTS -``` - -Sie kann vor der Nutzung an die eigene Umgebung angepasst werden. +Adapt this list to your environment before use. ### LDAP -Wird folgende Datei in der bestehenden Installation gefunden: +If `/opt/netbox/netbox/netbox/ldap_config.py` exists in the current +installation, the tool: -```text -/opt/netbox/netbox/netbox/ldap_config.py -``` +1. copies `ldap_config.py` into the new installation, and +2. ensures `django-auth-ldap` is in `local_requirements.txt`. -führt das Tool zwei Aktionen aus: +### Plugin compatibility -1. `ldap_config.py` wird in die neue Installation kopiert. -2. `django-auth-ldap` wird in `local_requirements.txt` sichergestellt. +The tool cannot reliably check whether a plugin supports the target NetBox +version; at the latest, this surfaces when `upgrade.sh` installs the +requirements. Before upgrading, check for every plugin: -### Plugin-Kompatibilität +- supported NetBox version +- supported Python version +- required migration steps +- changed configuration values +- known incompatibilities -Das Tool kann nicht zuverlässig prüfen, ob ein Plugin die Zielversion von NetBox unterstützt. Diese Prüfung erfolgt spätestens beim Installieren der Requirements durch `upgrade.sh`. +An incompatible plugin can abort `upgrade.sh` or prevent NetBox from starting +after the restart. -Vor dem Upgrade sollten für jedes Plugin geprüft werden: +## CSRF trusted origins -- unterstützte NetBox-Version -- unterstützte Python-Version -- erforderliche Migrationsschritte -- geänderte Konfigurationswerte -- bekannte Inkompatibilitäten - -Ein nicht kompatibles Plugin kann `upgrade.sh` abbrechen oder NetBox nach dem Neustart am Starten hindern. - ---- - -## CSRF Trusted Origins - -Das Tool prüft, ob in `configuration.py` eine direkte Zuweisung vorhanden ist: +The tool checks whether `configuration.py` contains a direct assignment: ```python CSRF_TRUSTED_ORIGINS = [ - "https://netbox.example.local", + "https://netbox.example.com", ] ``` -Während des Upgrades können neue Origins kommagetrennt eingegeben werden: +During the upgrade, new origins can be entered comma-separated: ```text -https://netbox.example.local,http://192.168.1.50 +https://netbox.example.com,http://192.0.2.50 ``` -Zulässig sind ausschließlich Origins mit: +Only origins with `http://` or `https://`, a host name or IP address and an +optional port are accepted — no path, query or fragment. -- `http://` -- `https://` -- Hostname oder IP-Adresse -- optionalem Port -- keinem Pfad -- keiner Query -- keinem Fragment - -Gültig: +Valid: ```text -https://netbox.example.local -http://192.168.1.50 -https://netbox.example.local:8443 +https://netbox.example.com +http://192.0.2.50 +https://netbox.example.com:8443 ``` -Ungültig: +Invalid: ```text -netbox.example.local -https://netbox.example.local/netbox -https://netbox.example.local?test=1 +netbox.example.com +https://netbox.example.com/netbox +https://netbox.example.com?test=1 ``` -Werden neue Origins eingegeben, hängt das Tool einen neuen Block an `configuration.py` an: +When new origins are entered, the tool appends a new block to +`configuration.py`: ```python # Automatisch durch das NetBox-Upgrade-Tool gesetzt CSRF_TRUSTED_ORIGINS = [ - 'https://netbox.example.local', - 'http://192.168.1.50', + 'https://netbox.example.com', + 'http://192.0.2.50', ] ``` > [!NOTE] -> Existiert bereits eine direkte Zuweisung und werden zusätzlich neue Werte eingegeben, enthält die Datei anschließend zwei Zuweisungen. In Python gilt die zuletzt ausgewertete Zuweisung. Prüfe die Datei nach dem Upgrade und konsolidiere die Einstellung bei Bedarf. +> If a direct assignment already exists and new values are entered as well, the +> file then contains two assignments; in Python the last one wins. Check the +> file after the upgrade and consolidate the setting if needed. -Dynamisch importierte oder programmatisch zusammengesetzte CSRF-Einstellungen können durch die einfache Prüfung möglicherweise nicht erkannt werden. Das Tool warnt in diesem Fall und verlangt eine zusätzliche Bestätigung. +Dynamically imported or programmatically built CSRF settings may not be +detected by this simple check. The tool warns in that case and asks for an +additional confirmation. ---- +## Rollback behaviour -## Rollback-Verhalten +Rollback depends on when an error occurs. -Das Rollback-Verhalten hängt davon ab, wann ein Fehler auftritt. +### Error before `upgrade.sh` starts -### Fehler vor dem Start von `upgrade.sh` +If the error happens after the directory switch but before `upgrade.sh` +starts, the tool automatically tries to re-activate the previous installation +and restart the NetBox services. At this point, no database migrations of the +new release have run. -Tritt der Fehler nach der Verzeichnisumschaltung, aber vor dem Start von `upgrade.sh` auf, versucht das Tool automatisch: +### Error after `upgrade.sh` starts -1. die bisherige Installation wieder zu aktivieren, -2. die NetBox-Dienste neu zu starten. +Once `upgrade.sh` has started, there is no automatic full rollback: database +migrations may already have run fully or partially, and switching only the +program directory back could combine an older NetBox with a newer database +schema. -In diesem Stadium wurden noch keine NetBox-Datenbankmigrationen durch das neue Release ausgeführt. +A full rollback typically requires: -### Fehler nach dem Start von `upgrade.sh` +1. Stop the services. +2. Re-activate the previous installation. +3. Restore the database from the backup made before the upgrade. +4. Restore media files from the same backup if needed. +5. Run the old installation's `upgrade.sh` or the necessary maintenance steps. +6. Start the services and check the logs. -Sobald `upgrade.sh` gestartet wurde, erfolgt kein automatischer vollständiger Rollback mehr. +### Regular directory -Grund: Datenbankmigrationen könnten bereits ganz oder teilweise ausgeführt worden sein. Eine reine Rückschaltung des Programmverzeichnisses könnte dann eine ältere NetBox-Version mit einem neueren Datenbankschema kombinieren. +If `/opt/netbox` is a regular directory, the old installation is moved, for +example, to `/opt/netbox_old_20260720_143500`. If that name exists, a running +number is appended. -Für einen vollständigen Rollback sind typischerweise erforderlich: +### Symlink installation -1. Dienste stoppen. -2. Vorherige Installation wieder aktivieren. -3. Datenbank aus dem vor dem Upgrade erstellten Backup wiederherstellen. -4. Media-Dateien bei Bedarf aus demselben Backup wiederherstellen. -5. Zur alten Installation passendes `upgrade.sh` beziehungsweise die notwendigen Wartungsschritte ausführen. -6. Dienste starten und Logs prüfen. +If `/opt/netbox` is a symlink, the new release is installed, for example, to +`/opt/netbox-4.6.5`, and the symlink is switched atomically. The previous +release directory is kept. The target directory must not exist yet; if +`/opt/netbox-4.6.5` already exists, the tool aborts so no data is overwritten. -### Normales Verzeichnis +## Backup layout -Ist `/opt/netbox` ein normales Verzeichnis, wird die alte Installation beispielsweise hier abgelegt: - -```text -/opt/netbox_old_20260720_143500 -``` - -Existiert der Name bereits, hängt das Tool eine laufende Nummer an. - -### Symlink-Installation - -Ist `/opt/netbox` ein Symlink, wird das neue Release beispielsweise hier installiert: - -```text -/opt/netbox-4.6.5 -``` - -Der Symlink `/opt/netbox` wird atomar auf das neue Verzeichnis umgestellt. Das vorherige Release-Verzeichnis bleibt bestehen. - -Das Zielverzeichnis darf noch nicht existieren. Bei einem bereits vorhandenen `/opt/netbox-4.6.5` bricht das Tool ab, damit keine vorhandenen Daten überschrieben werden. - ---- - -## Backup-Aufbau - -Ein vollständiges ZIP-Backup besitzt folgenden Aufbau: +A full ZIP backup looks like this: ```text netbox_backup_YYYYMMDD_HHMMSS.zip @@ -710,11 +616,12 @@ netbox_backup_YYYYMMDD_HHMMSS.zip └── media/ ``` -Je nach gewähltem Backup-Umfang können `netbox_database.dump` oder `media/` fehlen. +Depending on the chosen scope, `netbox_database.dump` or `media/` may be +missing. -### Metadaten +### Metadata -Beispiel einer `metadata.json`: +Example `metadata.json`, used on restore to determine the included scope: ```json { @@ -728,328 +635,252 @@ Beispiel einer `metadata.json`: } ``` -Diese Datei wird beim Restore verwendet, um den enthaltenen Umfang zu bestimmen. +### Safe extraction -### Sicherheit beim Entpacken - -Das Tool prüft ZIP- und TAR-Pfade vor dem Entpacken, um Path-Traversal-Angriffe zu verhindern. TAR-Archive mit symbolischen Links oder Hardlinks werden abgelehnt. - -Trotzdem sollten ausschließlich Backups und Release-Archive aus vertrauenswürdigen Quellen verwendet werden. - ---- +The tool checks ZIP and TAR paths before extracting to prevent path traversal. +TAR archives containing symbolic or hard links are rejected. Still, only use +backups and release archives from trusted sources. ## Troubleshooting ### `pg_dump: command not found` -PostgreSQL-Client installieren: +Install the PostgreSQL client: ```bash sudo apt update sudo apt install postgresql-client ``` -Bei mehreren PostgreSQL-Versionen sollte eine zum Server passende Client-Version verwendet werden. +With several PostgreSQL versions, use a client version matching the server. -### PostgreSQL fragt nach einem Passwort +### PostgreSQL asks for a password -Möglichkeiten: +- set `db_pass` in the script, +- configure `/root/.pgpass`, or +- set up local PostgreSQL authentication accordingly. -- `db_pass` im Skript setzen -- `/root/.pgpass` konfigurieren -- lokale PostgreSQL-Authentifizierung passend einrichten +### `dropdb` or `createdb` fails -### `dropdb` oder `createdb` schlägt fehl - -Der konfigurierte Benutzer besitzt vermutlich nicht die erforderlichen Rechte. - -PostgreSQL-Rollen prüfen: +The configured user probably lacks the required privileges. Check the +PostgreSQL roles: ```bash sudo -u postgres psql -c "\du" ``` -Alternativ den Restore-Ablauf so anpassen, dass administrative Datenbankaktionen mit einem separaten PostgreSQL-Benutzer ausgeführt werden. +Alternatively, adapt the restore so administrative database actions run with a +separate PostgreSQL user. -### Zielversion wird nicht gefunden - -Fehlermeldung: +### Target version not found ```text NetBox-Release vX.Y.Z wurde auf GitHub nicht gefunden. ``` -Prüfen: +(Release not found on GitHub.) Check the spelling of the version, internet +access, DNS resolution, proxy or firewall rules and whether the release exists. -- Schreibweise der Version -- Internetzugriff -- DNS-Auflösung -- Proxy- oder Firewall-Regeln -- Existenz des Releases +### Download fails behind a proxy -### Download schlägt über einen Proxy fehl - -Python berücksichtigt üblicherweise die Standardvariablen: +Python usually honours the standard variables: ```bash -export HTTPS_PROXY=http://proxy.example.local:3128 -export HTTP_PROXY=http://proxy.example.local:3128 +export HTTPS_PROXY=http://proxy.example.com:3128 +export HTTP_PROXY=http://proxy.example.com:3128 sudo -E ./netbox_backup_restore_upgrade.py ``` -Beachte die Sicherheitsauswirkungen von `sudo -E`. +Mind the security implications of `sudo -E`. -### `configuration.py` fehlt +### `configuration.py` is missing -Das Tool erwartet: +The tool expects `/opt/netbox/netbox/netbox/configuration.py`. Check +`CONFIG["netbox_path"]` and the actual NetBox directory layout. -```text -/opt/netbox/netbox/netbox/configuration.py -``` - -Prüfe `CONFIG["netbox_path"]` und die tatsächliche NetBox-Verzeichnisstruktur. - -### Dienst startet nach dem Upgrade nicht - -Status prüfen: +### Service does not start after the upgrade ```bash systemctl status netbox --no-pager -l systemctl status netbox-rq --no-pager -l -``` - -Logs prüfen: - -```bash journalctl -u netbox -n 200 --no-pager journalctl -u netbox-rq -n 200 --no-pager ``` -Häufige Ursachen: +Common causes: an incompatible plugin, a wrong Python version, a missing system +library, errors in `configuration.py` or `ldap_config.py`, an incomplete +database migration, wrong file permissions or changed NetBox configuration +options. -- inkompatibles Plugin -- falsche Python-Version -- fehlende Systembibliothek -- Fehler in `configuration.py` -- Fehler in `ldap_config.py` -- unvollständige Datenbankmigration -- falsche Dateirechte -- geänderte NetBox-Konfigurationsoptionen +### `upgrade.sh` fails on a plugin -### `upgrade.sh` schlägt bei einem Plugin fehl +Temporarily comment out or remove the plugin in `local_requirements.txt`, if +that is acceptable for the migration in question. Then check the plugin +documentation and enter a compatible version. Always make sure a full backup +exists before making changes. -Plugin vorübergehend in `local_requirements.txt` auskommentieren oder entfernen, sofern das für die betreffende Migration zulässig ist. Anschließend Plugin-Dokumentation prüfen und eine kompatible Version eintragen. +### Wrong Python interpreter -Vor Änderungen immer sicherstellen, dass ein vollständiges Backup vorhanden ist. - -### Falscher Python-Interpreter - -Im Einstellungsmenü oder dauerhaft im `CONFIG`-Block setzen: +Set it in the settings menu or permanently in the `CONFIG` block: ```python "python_path": "/usr/bin/python3.12", ``` -Pfad prüfen: +Check the path: ```bash ls -l /usr/bin/python3.12 /usr/bin/python3.12 --version ``` -### Media-Dateien besitzen falsche Rechte - -Prüfen: +### Media files have wrong permissions ```bash ls -ld /opt/netbox/netbox/media find /opt/netbox/netbox/media -maxdepth 2 -printf '%u:%g %p\n' | head -``` - -Korrigieren: - -```bash sudo chown -R netbox:netbox /opt/netbox/netbox/media ``` -### Upgrade wurde mit `Strg+C` unterbrochen +### Upgrade interrupted with Ctrl+C -Das globale `KeyboardInterrupt`-Handling beendet das Programm. Wurde `upgrade.sh` bereits gestartet, darf nicht davon ausgegangen werden, dass ein automatischer Rollback erfolgt ist. +The global `KeyboardInterrupt` handler terminates the program. If `upgrade.sh` +had already started, do not assume an automatic rollback happened: -Vorgehen: +1. Check the service status. +2. Check the process list for running upgrade, pip or migration processes. +3. Check the installation path and symlink target. +4. Do not reset the database schema without a backup. +5. Evaluate the logs and the upgrade output. -1. Dienststatus prüfen. -2. Prozessliste auf laufende Upgrade-, Pip- oder Migrationsprozesse prüfen. -3. Installationspfad und Symlink-Ziel prüfen. -4. Datenbankschema nicht ohne Backup zurücksetzen. -5. Logs und Ausgabe des Upgrades auswerten. +## Security notes ---- +### Root privileges -## Sicherheitshinweise +Depending on file permissions, backup functions may work without root. Restore +and upgrade need elevated privileges for access to `/opt/netbox`, +`systemctl`, `chown` and the directory switch, so run the tool with `sudo` for +administrative tasks. -### Root-Rechte +### Passwords in the source code -Backup-Funktionen können je nach Dateirechten möglicherweise ohne Root-Rechte funktionieren. Restore und Upgrade benötigen jedoch erhöhte Rechte für: +A database password in the `CONFIG` block is readable by every user who can +read the script. Recommendations: -- Zugriff auf `/opt/netbox` -- `systemctl` -- `chown` -- Verzeichnisumschaltung - -Führe das Tool deshalb für administrative Vorgänge mit `sudo` aus. - -### Passwörter im Quelltext - -Ein Datenbankpasswort im `CONFIG`-Block ist für jeden Benutzer lesbar, der Zugriff auf die Skriptdatei besitzt. - -Empfehlungen: - -- Passwort möglichst über `.pgpass` bereitstellen -- Skript nur für Root lesbar machen -- keine Skripte mit Zugangsdaten in öffentliche Repositories übertragen -- Backups verschlüsselt speichern - -Geeignete Rechte: +- provide the password via `.pgpass` where possible +- make the script readable by root only +- never commit scripts with credentials to public repositories +- store backups encrypted ```bash sudo chown root:root /usr/local/sbin/netbox-tool sudo chmod 700 /usr/local/sbin/netbox-tool ``` -### Backup-Schutz +### Protecting backups -Ein NetBox-Datenbankbackup kann sensible Informationen enthalten, beispielsweise: +A NetBox database backup can contain sensitive information such as user +accounts, API tokens, device and site data, IP addresses, secrets from plugins, +documents and images. Backups should be transferred and stored encrypted, be +accessible only to authorised people and be deleted according to a defined +retention plan. -- Benutzerkonten -- API-Tokens -- Geräte- und Standortdaten -- IP-Adressen -- Secrets aus Plugins -- Dokumente und Bilder +### `/tmp` as backup target -Backups sollten deshalb: - -- verschlüsselt übertragen werden -- verschlüsselt gespeichert werden -- nur für berechtigte Personen zugänglich sein -- nach einem definierten Aufbewahrungsplan gelöscht werden - -### `/tmp` als Backup-Ziel - -`/tmp` ist als Standardwert bequem, aber nicht als dauerhafter Backup-Speicher geeignet. Ändere `backup_dir` beispielsweise auf: +`/tmp` is a convenient default but not suitable as permanent backup storage. +Change `backup_dir`, for example: ```python "backup_dir": "/srv/backups/netbox", ``` -Verzeichnis vorbereiten: - ```bash sudo install -d -m 700 -o root -g root /srv/backups/netbox ``` -### Release- und Plugin-Quellen +### Release and plugin sources -Das NetBox-Release wird von GitHub geladen. Ein Plugin-Requirement verweist zusätzlich auf einen externen Git-Server. +The NetBox release is downloaded from GitHub, and one plugin requirement points +to an external Git server. Before use, check trust in the source, reachability, +the TLS certificate chain, the desired version or commit pinning, and internal +software supply-chain policies. For reproducible installations, pin plugin +versions or commits. -Prüfe vor dem Einsatz: +## Known limitations -- Vertrauen in die Quelle -- Erreichbarkeit -- TLS- und Zertifikatskette -- gewünschte Version beziehungsweise Commit-Pinning -- interne Richtlinien für Software-Lieferketten +- Settings changed in the menu are not saved permanently. +- Plugin compatibility is not checked in advance. +- NetBox release notes are not read or interpreted automatically. +- Major upgrade paths only trigger a warning and are not fully validated. +- An automatic database rollback after a started migration is intentionally not + implemented. +- PostgreSQL backup and restore use the same configured database user. +- The service names `netbox` and `netbox-rq` are hard-coded. +- Additional services such as a separate housekeeping service, reverse proxy or + monitoring agent are not restarted. +- Manual changes to the NetBox source code are not carried over. +- Newly entered CSRF origins are appended as an additional block instead of + editing an existing one. +- No automatic HTTP health check of the NetBox web interface. +- No automatic backup rotation. +- Backups are not encrypted automatically. -Für reproduzierbare Installationen sollten Plugin-Versionen oder Commits möglichst fest vorgegeben werden. - ---- - -## Bekannte Einschränkungen - -- Einstellungen aus dem Menü werden nicht dauerhaft gespeichert. -- Das Tool prüft Plugin-Kompatibilität nicht vorab. -- Es liest oder interpretiert keine NetBox-Release Notes automatisch. -- Major-Upgrade-Pfade werden nur gewarnt, nicht vollständig validiert. -- Ein automatischer Datenbank-Rollback nach gestarteter Migration ist absichtlich nicht implementiert. -- PostgreSQL-Backup und Restore verwenden denselben konfigurierten Datenbankbenutzer. -- Die Service-Namen `netbox` und `netbox-rq` sind fest vorkonfiguriert. -- Zusätzliche Dienste wie ein separater Housekeeping-Service, Reverse Proxy oder Monitoring-Agent werden nicht neu gestartet. -- Manuelle Änderungen am NetBox-Quellcode werden nicht übernommen. -- Bei neu eingegebenen CSRF-Origins wird ein zusätzlicher Konfigurationsblock angehängt, statt einen bestehenden Block strukturell zu bearbeiten. -- Das Skript führt keinen automatischen HTTP-Healthcheck der NetBox-Weboberfläche durch. -- Es wird keine automatische Backup-Rotation durchgeführt. -- Das Backup wird nicht automatisch verschlüsselt. - ---- - -## Empfohlene Prüfung nach einem Upgrade - -Dienststatus: +## Recommended checks after an upgrade ```bash systemctl status netbox netbox-rq --no-pager -``` - -Fehler in den Logs: - -```bash journalctl -u netbox -u netbox-rq --since "15 minutes ago" --no-pager ``` -Weboberfläche prüfen: +In the web interface, check that: -- Anmeldung funktioniert -- Startseite lädt ohne Fehler -- Objekte und IPAM-Daten sind vorhanden -- Bilder und Dokumente sind erreichbar -- Custom Scripts und Reports sind vorhanden -- Hintergrundjobs werden verarbeitet -- LDAP-Anmeldung funktioniert -- Plugins werden geladen -- API-Aufrufe funktionieren +- login works +- the home page loads without errors +- objects and IPAM data are present +- images and documents are reachable +- custom scripts and reports are present +- background jobs are processed +- LDAP login works +- plugins are loaded +- API calls work -Installierte Version über die NetBox-Weboberfläche oder die lokale Installation kontrollieren. +Check the installed version in the web interface or the local installation. +Only remove the old installation and the backup once the new version has been +verified and found stable. -Alte Installation und Backup erst entfernen, wenn die neue Version erfolgreich geprüft und für stabil befunden wurde. - ---- - -## Beispiel für einen sicheren Upgrade-Ablauf +## Example of a safe upgrade ```bash -# 1. Tool starten +# 1. Start the tool sudo /usr/local/sbin/netbox-tool -# 2. Menüpunkt 1 wählen und vollständiges Backup erstellen +# 2. Choose menu item 1 and create a full backup -# 3. Backup extern sichern +# 3. Store the backup externally scp /srv/backups/netbox/netbox_backup_20260720_143500.zip \ backupserver:/srv/backups/netbox/ -# 4. Prüfsumme speichern +# 4. Save a checksum sha256sum /srv/backups/netbox/netbox_backup_20260720_143500.zip \ > /srv/backups/netbox/netbox_backup_20260720_143500.zip.sha256 -# 5. Tool erneut starten und Menüpunkt 3 wählen +# 5. Start the tool again and choose menu item 3 sudo /usr/local/sbin/netbox-tool -# 6. Nach dem Upgrade Dienste und Logs prüfen +# 6. After the upgrade, check services and logs systemctl status netbox netbox-rq --no-pager journalctl -u netbox -u netbox-rq --since "15 minutes ago" --no-pager ``` ---- +## Disclaimer -## Haftungsausschluss +Use at your own risk. An upgrade can fail because of incompatible plugins, +changed configuration options, database migrations, missing dependencies or +local customisations. Before production changes, always have: -Die Nutzung erfolgt auf eigene Verantwortung. Ein Upgrade kann durch inkompatible Plugins, geänderte Konfigurationsoptionen, Datenbankmigrationen, fehlende Abhängigkeiten oder lokale Anpassungen fehlschlagen. - -Vor produktiven Änderungen sollten immer vorhanden sein: - -- ein getestetes Datenbankbackup -- ein getestetes Media-Backup -- ein dokumentierter Rollback-Plan -- ein Wartungsfenster -- Zugriff auf System- und Datenbankkonsole -- eine getestete Wiederherstellung auf einer separaten Instanz \ No newline at end of file +- a tested database backup +- a tested media backup +- a documented rollback plan +- a maintenance window +- access to the system and database console +- a tested restore on a separate instance