16 In-app backups from before this version

Earlier versions took a weekly in-app backup. That has stopped. This version takes no backups of its own, so an instance that relied on it has none until you set them up, unless its host already takes them. The worker tells administrators before it stops the old schedule, and tries again at its next start if the alert can't be queued. With the security alert email turned off, only the audit log's backups.stopped entry and the worker's log say so. deploy/update.sh says so at the end of an update, and on Azure and AWS, where that script doesn't run, this paragraph is the place to check.

The old files stay where they were, and nothing deletes them for you: on the uploads volume, under backups/ and backup-work/, or in the STORAGE_BACKUPS container or bucket. The worker tells administrators once, with the count, and again if it changes. storage:reconcile prints it. backup_files stays in the database for one release, so rolling back to the earlier version still lists them.

Keep them until your new backups have run and a restore from them has been tested. They may be your only copies. deploy/backup.sh leaves them out, so anything that removes the uploads volume removes them for good, including restoring in place and a full rollback that reuses the directory. To keep them, copy them off first:

docker run --rm -v grc_uploads:/data:ro alpine:3.20 tar -C /data -czf - backups > /var/backups/grc-old-inapp.tar.gz

Replace grc with your project name. A backup can be restored only by the earlier version that wrote it, with the same AUTH_SECRET or BACKUP_SIGNING_KEY. Keep those with it, and keep the release too. To go on using one, restore it on a separate instance of that version.

They hold password hashes and encrypted integration secrets, and nothing protects them more than the volume or store does. They also take up room. Once your new backups are tested, and you no longer expect to roll back, a person removes them:

docker compose exec web sh -c 'ls -l /app/uploads/backups /app/uploads/backup-work'
docker compose exec web sh -c 'rm -rf /app/uploads/backups /app/uploads/backup-work'

On object storage, list and remove them with your own credentials, as the application's identity only reads there now. Each is named grc-backup-*:

az storage blob list --auth-mode login --account-name <account> --container-name <backups container> --prefix grc-backup- -o table
az storage blob delete-batch --auth-mode login --account-name <account> --source <backups container> --pattern 'grc-backup-*'
aws s3 ls s3://<backups bucket>/ --recursive
aws s3 rm s3://<backups bucket>/ --recursive --exclude '*' --include 'grc-backup-*'

A container or bucket with a retention lock keeps each file until its lock ends, and a versioned bucket keeps old versions under its own rules.

Leave BACKUP_SIGNING_KEY, BACKUP_WORK_DIR, BACKUP_RESTORE_MAX_BYTES, STORAGE_BACKUPS and STORAGE_BACKUPS_IMMUTABLE in .env for now. This version doesn't use them, except STORAGE_BACKUPS to count old backups. The compose file still passes them, because an image rollback keeps that file and the earlier image needs them: with STORAGE_BACKUPS missing on object storage, it does not start. For the same reason, the bundled Caddy keeps its larger limit for the earlier image's restore. They can come out once you no longer expect to roll back, along with a larger request limit you set on your own proxy for /api/backups/restore.