Operations

Maintenance

When a new version is available, run:

./update.sh

The script performs the following steps:

1

Pull latest Docker images

Pulls the latest Docker images.

2

Backup current volume data

Backs up the current volume data.

3

Start Docker services

Starts Docker services.

4

Create a database backup

Creates a database backup.

5

Run database migrations

Runs database migrations.

6

Cleanup unused Docker resources

Cleans up unused Docker resources.

Backup Strategy

  • Daily automated database backups via pgbackups service

  • Volume data backup before updates

  • Retention policies:

    • 7 days of daily backups

    • 4 weeks of weekly backups

    • 6 months of monthly backups

The specifics can be adjusted in the docker-config file.

Backup Recovery

First, make sure there are no connections to the database by terminating all active connections:

Then drop and recreate the database:

Finally, add the backup:

Manual Service Management