Backups
Known limitations and troubleshooting
What backups by Brewless do not do, such as point-in-time recovery or backing up a cache, and what to do when a backup fails or is overdue.
Known limitations
- No point-in-time recovery. You go back to a backup, not to any moment. With the default daily schedule you can lose up to a day of data, with
hourlyup to an hour. - Not one moment for everything. The databases and the buckets of a backup are each taken at their own moment, and a daily backup of a Serverless SQL or Managed Database is Scaleway's own newest backup of it. A backup is not a single consistent picture of the database and its files together.
- A cache is not backed up. A Managed Database for Redis holds nothing that cannot be built again; the environment is shown as partly protected while it has one.
- Edge storage is not backed up. Storage zones at bunny.net are left out.
- Serverless SQL Database is only in Paris, so its backups always go to Amsterdam.
- A Bunny destination is not immutable. A bunny.net Storage zone has one password, so the job that writes there can also delete.
- More often than daily wakes a Serverless SQL Database for every backup, and that costs money. See Backing up databases.
- Your variables are not in the backup unless you switch them on (
backup.secrets: true). See Encryption and keys. - Brewless could technically read the runner key in your Secret Manager. Only the recovery key is out of its reach. See who can technically read what.
- Restores go to Scaleway. A restore from the console writes into your Scaleway account; to put data elsewhere, download it or use the Recovery Kit.
- A restore is work you start. Backups do not keep your application running during an outage, and how long a restore takes depends on the size of your data.
A backup failed
The Backups tab shows every run with its outcome, and the owners and admins of the organisation get a mail. A run is partly successful when at least one item failed and the others are in the backup; the environment is then shown as partly protected. The run's error says what went wrong:
| Error | What it means | What to do |
|---|---|---|
secret_missing |
The job could not read a key it needs from your Secret Manager | Look whether a secret under /brewless-backup/ or /brewless-backup-key/ was removed or changed at Scaleway. Changing a backup setting sets the backups of the environment up again; otherwise contact support |
source_unreachable, source_denied |
The job could not reach or read a database or bucket | Check that the resource still exists and was not changed outside Brewless |
source_too_large |
A bucket no longer fits on the backup job's disk | Nothing: from the next run on the bucket is backed up on a temporary Instance |
export_failed, export_timeout |
Scaleway did not deliver the export of its own backup | Usually passing; the next run tries again. When it repeats, back up now from the Backups tab |
dump_failed |
A direct dump of the database failed | Look at the run's message; a database that is too large for the job's time is one cause |
destination_unreachable, destination_denied, destination_full |
A destination refused or could not be reached | For the primary, check that the bucket and its policy were not changed at Scaleway. For your own destination, test it and check its key and space |
check_failed |
The check of the new snapshots failed | Back up now; when it repeats, contact support. The maintenance forgets nothing on a destination whose newest backup did not pass its check |
copy_failed |
Copying to a secondary failed | The primary has the backup. Test the destination |
deadline |
The run reached its time limit, or the temporary Instance did not report before its deadline | Leave out what does not need a backup (backup.exclude) |
abandoned |
A run stopped without a word: the next run took over, or Brewless's hourly check found that its job had ended or its heartbeat had stopped for ten minutes; or the temporary Instance stopped without a report | Nothing, when the next run succeeds |
nothing_saved |
The run backed up none of the environment's data: every database and bucket was skipped or failed. It is failed, or partly successful when the configuration was saved, and never counts as a successful backup | Look at the items of the run; a bucket that waits for the temporary Instance does not count as skipped |
A run that is started while another one of the same environment is still alive is refused; that is the guard against two runs at once, not a failure.
A bucket backed up on the temporary Instance is backed up after the job's run, into the same recovery point. When the Instance stops without reporting, or is still there at its deadline, Brewless removes it, the point is partly successful (failed, when nothing else of it was saved), and the next scheduled backup tries again. The audit trail names every Instance Brewless made and removed (backup.instance_started, backup.instance_removed, backup.instance_reaped).
A backup is overdue
No successful backup within the schedule plus three hours makes a backup overdue. Possible reasons: the job is still running (a large first backup), it failed, or its trigger at Scaleway was removed or changed. Back up now on the Backups tab, or brewless backup:run <environment> --wait, starts one and shows what happens.
A run shown as Skipped: another run was under way started while another run of the environment was still going, for example the schedule during a Back up now. It refused to start and backed up nothing; the run that was under way is the one that counts.
When Scaleway no longer has the backup job that Brewless noted, Back up now looks for the job by its name and starts that one. When the job is gone altogether, Brewless sets up the backup jobs again and asks you to try again in a few minutes.
When you detach an environment
Detaching does not touch the backups. The backup jobs, their schedules, the repository and state buckets, the identities and the keys stay in your Scaleway account and keep running, and Scaleway keeps billing you for them. Stop them by deleting the jobs at Scaleway; Brewless deletes no backup bucket and no key, also not when your subscription ends.