Skip to content

Maintenance

Once Isekai Core is running, you’ll need to perform occasional maintenance tasks.

We release updates frequently with new features and bug fixes. Updating your Docker-based installation is simple.

  1. Pull the latest images

    Terminal window
    docker compose pull
  2. Recreate containers (this minimizes downtime)

    Terminal window
    docker compose up -d
  3. Prune old images (optional, saves disk space)

    Terminal window
    docker image prune -f

Your data lives in two places:

  • PostgreSQL Database: Contains all user data, draft text, schedules, and automation rules.
  • S3 Storage: Contains the actual image files (MinIO, Cloudflare R2, AWS S3, etc.).

You primarily need to backup the PostgreSQL Database and your .env file.

  • S3 Storage: If using local MinIO, backup the minio_data Docker volume. Cloud providers (R2, S3) are highly durable.
  • Redis: Strictly cache and temporary job queues. No backup needed.

If you are using the default docker-compose.yml, you can create a cron job to backup the database container:

Terminal window
# Backup script example
docker exec isekai-postgres pg_dump -U isekai isekai > /path/to/backups/isekai_$(date +%F).sql

To restore a database dump:

  1. Stop the app first

    Terminal window
    docker stop isekai-backend
  2. Restore command

    Terminal window
    cat backup.sql | docker exec -i isekai-postgres psql -U isekai