Skip to content

Upgrading from Ballast v0.1 ​

This page is only for people who already run v0.1. If this is a fresh install, start with the quickstart instead.

Upgrading is meant to be uneventful: replace the binary and run any command. Ballast upgrades its own database the first time it starts, and your existing services, schedules, destinations and snapshots keep working.

Before you upgrade ​

Take a copy of Ballast's data folder (see Configuration). Ballast can also do this for you:

bash
ballast doctor
ballast self-backup <destination>

self-backup sends Ballast's own status database, config and your own catalog files to a destination and checks that they can be read back.

Once you have a destination, Ballast also does this by itself every day at 04:30, to every destination, and shows it on the dashboard as ballast-self with its own light and alerts. Older copies are removed by the destination's retention policy, and only after the new one has been read back. To turn it off, disable its schedule; to run it right now, use ballast backup ballast-self.

What changes ​

Then (v0.1)Now
Destinations were local folders.Destinations have a type: local, Backblaze B2, S3, R2 or SFTP. Existing local destinations are converted automatically.
Services always used the Docker on the same machine.Every service belongs to a Docker host. Existing services use the built-in local host. Add others with ballast host add (Docker hosts).
Status was one light per service.Each destination shows its own light, plus how long ago the last restore test passed. A stale one shows amber.

New things you can use ​

  • ballast verify <service> or --all re-runs the restore test on the latest backup without making a new one. - ballast catalog validate <file> and install <file> check and add your own catalog entries. - Retention: forget --prune runs per your policy after each backup. - Docker volumes and Compose projects can be backed up and restored together (ballast restore-project). - Proxmox guest backups and restore drills. - ballast doctor for a health check.

If something looks wrong ​

Run ballast doctor first. Your old snapshots stay in their restic repositories, so you can always restore them with ballast restore, even if you roll back to the old binary. Copy back the data folder from before the upgrade if you do roll back.

Scripts in custom entries ​

If a custom catalog entry runs a script (an exec backup or an exec-script check), self-backup also saves that script under scripts/, keeping its full path, and lists it. ballast doctor warns when such a script is missing or cannot be saved.

Do not put passwords or keys inside those scripts. Anything in your credentials folder is never backed up, and a script that lives there or links into it is left out. Have the script read secrets from a root-only file instead.

Source for every project is on GitHub. You can sponsor the work there too.