Use
Adopt
Bring an existing installation under iac – 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
iac 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.
root needs an SSH key in /root/.ssh/authorized_keys – afterwards SSH takes keys only and
the password of root is locked. Without a key adoption stops before touching anything; add yours
with ssh-copy-id root@<guest> first.
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 iac 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.