Backups
Backups copies PostgreSQL databases, container volumes, folders and the panel itself to one or more storages. By default nothing is backed up.
Storages
Section titled “Storages”- A local folder, S3, SFTP, a restic REST server or any rclone storage. rclone storages with OAuth sign-in have a connect wizard.
- For SFTP the panel can create a key itself and show the public part for
authorized_keys. - Deleting a storage in the panel does not touch the data in it.
Protected S3 storage
Section titled “Protected S3 storage”The server key can add backups but cannot delete old versions, so an attacker on the server cannot wipe the history. The panel checks this with the same key: versioning is on, deleting a version is denied, bucket settings cannot be changed, and lifecycle rules do not delete current versions. Data from such a storage can be restored as of a chosen moment: Storage as of.
New set defines what to copy and where.
- Sources: PostgreSQL databases, system Docker volumes (containers can be paused for the snapshot), folders and the panel itself: the
database,
/opt/ingrest/etcand certificates. - The format is picked at creation: restic repository (default: encryption and deduplication) or Plain archives: tar.zst and .sql.zst files that can be read without restic. Archives are not encrypted; encryption (rclone crypt) exists only for rclone storages and is chosen when the storage is created.
- The schedule is cron in server time; the form suggests daily at 03:00 and keeping 7 daily, 4 weekly and 3 monthly backups.
- Commands before and after the backup. If the “before” command fails, the backup is cancelled.
Checks
Section titled “Checks”By default a set has a check (restic check reading 5% of the data) every 7 days, a trial restore of the latest backup
into a temporary folder every 30 days, and an alert on failure. If the last good backup is older than 26 hours, a
critical alert is raised.
Restore
Section titled “Restore”- Over the current data: a safety dump is taken before a database restore and a safety snapshot before a volume restore; containers with those volumes are stopped.
- Into new databases and volumes: databases get the
_restoredsuffix, volumes-restored-<backup>. - Into a directory: to look at or take the files by hand.
Single items of a backup can be restored.
Without the repository passwords the backups cannot be read. Download keys saves them to a file; the panel reminds you until the keys are downloaded or when they are stale. Download storage access saves the S3 and SSH keys and the rclone settings; keep it apart from the keys file. Keep both files off the server.
If the server is lost, install Ingrest on a new one, stop the service and restore the panel from a backup:
sudo ingrest restore --repo … --password-file … for restic or --archive for plain archives; for rclone storages add --rclone-config, see
CLI.