This document outlines the backup and restore procedures specific to GritivaCore deployments. It is crucial to understand the distinct components that require backup and the methods to restore them effectively.
GritivaCore deployments require three distinct types of backups:
Hosted Control Plane Data: Managed by Gritiva, this data is stored in Postgres with a 30-day retention policy, encrypted at rest, and backed up daily.
Per-VM Agent State: This includes the configuration file located at /etc/gritiva/agent.toml and the state stored in /var/lib/gritiva/. This data is small and should be backed up using a cron job with rsync.
Scope Contents: This is your application data within each scope. Scope backups are taken through the panel or the API and are stored on the same host — offsite S3 replication is not enabled by default. Check yours with curl -s https://api.gritiva.com/api/v1/backups/s3/status -H "X-API-Key: $GRITIVA_API_KEY"; if it reports {"enabled": false}, copy the backups somewhere else yourself.