Backup & Restore
Enterprise-grade data protection for geospatial layers, styles, data stores, and system configurations. Ensure zero data loss with automated, encrypted backups.
Overview
GeoServer's Backup & Restore module provides a unified, automated system to protect your entire geospatial infrastructure. It captures vector/raster layers, SLD/SE styles, data store connections, user roles, and audit logs into versioned, encrypted archives.
Designed for compliance (GDPR, HIPAA, SOC 2) and high availability, backups support incremental snapshots, cross-region replication, and one-command restoration with full integrity verification.
How It Works
Snapshot
Creates a consistent read-only snapshot of all active data stores and metadata without interrupting live queries.
Encrypt & Compress
Applies AES-256 encryption and LZ4 compression before writing to your configured storage backend.
Replicate
Automatically replicates archives to secondary regions or cloud buckets for disaster recovery readiness.
Verify & Test
Runs automated checksum validation and optional dry-run restores to ensure recovery readiness.
Configuration & Scheduling
Backups can be configured via YAML, CLI, or the REST API. Supports cron expressions, event-driven triggers, and policy-based retention.
backup: enabled: true schedule: "0 2 * * *" # Daily at 2:00 AM UTC retention: daily: 7 weekly: 4 monthly: 12 encryption: algorithm: AES-256-GCM key_management: AWS-KMS storage: primary: s3://geoserver-backups-prod replica: s3://geoserver-backups-dr-us-west compression: lz4
Configuration Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
schedule |
string (cron) | Backup execution schedule | 0 3 * * * |
retention.daily |
integer | Number of daily snapshots to keep | 7 |
encryption.key_management |
string | KMS provider for encryption keys | local |
verify_on_restore |
boolean | Run integrity checks before restoring | true |
CLI & API Usage
Automate backup and restore workflows directly from your terminal or CI/CD pipelines.
# Trigger an immediate full backup geoserver backup --full --encrypt # Restore from specific snapshot geoserver restore --snapshot 2025-06-12_020000 --target prod-cluster # List available backups with metadata geoserver backup list --format json --filter "type:incremental"
REST API endpoints for programmatic control:
POST /api/v2/backup/trigger- Initiate backupGET /api/v2/backup/snapshots- List archivesPOST /api/v2/restore- Restore with rollback safetyGET /api/v2/backup/verify/{id}- Check integrity
Best Practices
- Separate Infrastructure: Store backups on independent networks/cloud accounts to prevent cascade failures.
- Regular Restore Drills: Test restoration monthly in isolated environments to validate RPO/RTO targets.
- Key Rotation: Rotate encryption keys every 90 days using your configured KMS provider.
- Immutable Backups: Enable object lock/WORM policies for compliance and ransomware protection.
- Monitor & Alert: Set up Prometheus/Grafana alerts for failed backups or retention threshold breaches.
Frequently Asked Questions
Need Help Implementing Backup & Restore?
Our geospatial infrastructure team can design a custom DR strategy, configure automated pipelines, and run validation drills for your environment.
Contact Solutions Engineering →