Life-Cycle
Adopt
Bring an existing installation under haypack – check, back up, align.
What “adopt” means
Say you set up a service by hand and now want update to look after it. adopt.sh turns it into an
haypack installation – no reinstall, and your data stays.
Apps that support this have a section “Adopt an existing installation” on their page.
How it works
Requirements: Debian 12 or 13 and at least 512 MiB RAM – Ansible and apt need that much
together. A smaller container can be enlarged on the Proxmox host first:
pct set <ID> --memory 512. Below that, adoption stops before touching anything.
In the existing guest as root:
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/adopt.sh)"
Options go after a placeholder word (bash -c takes the first one as the script name):
bash -c "$(curl …)" adopt -y asks no questions, … adopt --no-backup skips step 3.
- Check – Debian version, kind of installation, paths, configuration. Changes nothing yet.
- Ask – what will be adopted.
- Back up – the app’s important paths, before any change. If they don’t fit on the guest
twice, back up the whole guest yourself (e.g. vzdump to Proxmox Backup Server) and use
--no-backup– then that backup is the way back. - Align – move existing data and configuration into the haypack layout, then the target state like every installation.
From then on it behaves like a fresh installation: update, modules, firewall.
When it can’t be done automatically
If the check finds something that can’t be adopted safely (e.g. another major version or a Docker installation), it stops before any change and names the reason. In that case, follow the app’s migration guide (linked on its page): set up a new guest and move the data over.
Was „Adopt“ bedeutet
Eine manuell eingerichtete App kann mit adopt.sh in eine haypack-Installation überführt werden. Es erfolgt keine Neuinstallation; die Daten bleiben erhalten. Unterstützte Apps zeigen auf ihrer Seite Adopt an existing installation.
Ablauf
Voraussetzungen sind Debian 12 oder 13 und mindestens 512 MiB RAM für Ansible und apt. Einen kleineren Container vorher auf dem Proxmox-Host mit pct set <ID> --memory 512 vergrößern. Unterhalb dieser Grenze wird vor Änderungen abgebrochen.
Im bestehenden Gast als root:
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/adopt.sh)"
Optionen folgen nach einem Platzhalterwort, das bash -c als Skriptnamen verwendet: bash -c "$(curl …)" adopt -y ohne Rückfragen; … adopt --no-backup überspringt die Sicherung.
- Prüfen: Debian-Version, Installationsart, Pfade und Konfiguration; noch keine Änderungen.
- Nachfragen: Anzeigen, was übernommen werden soll.
- Sichern: Wichtige App-Pfade vor jeder Änderung sichern. Reicht der Platz nicht für eine zusätzliche Kopie, den gesamten Gast selbst sichern, etwa mit vzdump auf Proxmox Backup Server, und erst dann
--no-backupverwenden. Dieses Backup ist anschließend der Rückweg. - Angleichen: Bestehende Daten und Konfiguration in das haypack-Layout überführen und den gemeinsamen Zielzustand herstellen.
Danach stehen update, Module und Firewall wie bei einer neuen Installation zur Verfügung.
Wenn die Übernahme nicht automatisch möglich ist
Bei einer nicht sicher unterstützten Installation, beispielsweise einer anderen Hauptversion oder Docker, stoppt die Prüfung vor Änderungen und nennt den Grund. Dann der auf der App-Seite verlinkten Migrationsanleitung folgen: neuen Gast erstellen und Daten umziehen.