Appearance
Replacing a backup script with Ballast
Most people arrive at Ballast with a script that has been quietly doing the job for years. This guide moves you over without a gap: Ballast runs beside the script, proves itself, and only then do you switch the script off.
The plan
- Run both side by side. Set up each service in Ballast with its own destinations. Do not point Ballast at the folders, buckets or dump files your script uses, so the two never touch each other's files.
- Look before you run. For any service,
ballast backup <service> --preview(or "What would a backup do?" on the Services page) lists what would be backed up, where each part goes, which containers are stopped and for about how long, what is skipped and what reaches a second copy. Nothing is run. - Seven green days. Wait until the service has been green for seven days in a row. Green means the backup was made and then restored in a test, not just that a file exists.
- One test restore each. Restore every service once from the Ballast screen into a new folder, and open the result. A backup you have never restored is a guess.
- Switch the script off. Comment out its schedule first (do not delete it yet). Keep it for a month, then remove it.
The dashboard shows this as a checklist for each service. You tick the steps; the last step only unlocks when the service is green right now.
What your script does, in Ballast terms
| In your script | In Ballast |
|---|---|
pg_dump | gzip > file | The Postgres entry (or Immich, Gitea, MariaDB): Ballast runs the dump, checks it, then restores it into a throwaway container. Use db_user for a database user that is not postgres. |
Things to watch for
- Big first uploads. The first backup to B2 or S3 can take hours. Progress is logged every 30 seconds; do not stop it because it looks quiet.
- Shared Proxmox storage. If the guest dumps land on storage your script also writes to, Ballast leaves the script's dumps alone, but the storage can fill up twice as fast. Give Ballast its own storage if you can.
- Same schedule. Two jobs stopping the same container at the same minute is confusing. Give Ballast a different hour while you compare.
- Your old job may back up Ballast's files. If your old backup job copies the disk Ballast writes to (for example a whole backup SSD), it will start copying Ballast's repository and Proxmox dumps too, doubling the disk and cloud bucket use. Before the first Ballast run, check the old job's
--excludelist (or its equivalent) and exclude Ballast's folders.