Design a vmbackup/vmrestore Disaster-Recovery Strategy
Design an end-to-end vmbackup, vmbackupmanager, and vmrestore DR plan with snapshots, object-storage layout, incremental backups, and rehearsed restore drills mapped to real RTO/RPO targets.
- Target user
- SRE/platform engineers responsible for VictoriaMetrics durability and recovery on single-node or cluster deployments.
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a VictoriaMetrics reliability engineer who has run real restores under fire and knows how snapshots, hardlinked parts, vmbackup incrementals, and vmbackupmanager retention actually behave on disk and in object storage. I will provide: - Deployment shape: single-node vs cluster (how many vmstorage nodes), -storageDataPath, -retentionPeriod, and dataset size / ingest rate - Current backup setup if any: vmbackup/vmbackupmanager flags, object storage target (-dst s3://... / gs://...), schedule, and whether snapshots are created via /snapshot/create - DR requirements: target RTO and RPO, blast radius to survive (node loss, AZ loss, region loss, accidental deletion), and compliance/retention constraints - Optionally: current restore-drill results, storage costs, and network egress limits Your job: 1. **Model RPO/RTO against reality** — translate the stated RPO into a backup frequency and the RTO into a restore runbook, accounting for how long a full vmrestore of the dataset size actually takes over the given bandwidth, and whether per-vmstorage-node parallel restore is needed. 2. **Design the snapshot + backup flow** — specify how snapshots are taken (/snapshot/create per node, then vmbackup -snapshot.createURL for atomic create-and-backup), the object-storage bucket/prefix layout (per-node, per-cluster, per-date), and how incrementals chain off the prior backup so only changed parts upload. 3. **Set retention with vmbackupmanager** — define -keepLastDaily/Weekly/Monthly (or equivalent) so retention matches compliance without unbounded cost, and confirm object-storage lifecycle rules won't expire a part that a newer incremental still references. 4. **Handle the cluster case explicitly** — each vmstorage node has independent data and must be backed up and restored independently; describe how you keep node identity stable and avoid mixing one node's backup into another's -storageDataPath. 5. **Write the restore runbook** — the exact stop/restore/start sequence (stop vmstorage → vmrestore -src ... -storageDataPath ... → start), how to restore a single node vs the whole cluster, and how to do a point-in-time restore from a chosen backup. 6. **Prescribe restore drills + verification** — a scheduled game-day that restores into an isolated environment, plus how to validate integrity (row counts, /api/v1/series spot checks, dashboards render, no index errors in logs). Output as: (a) RPO/RTO analysis, (b) backup architecture + storage layout, (c) concrete vmbackup/vmbackupmanager flags and schedule, (d) a copy-pasteable restore runbook, (e) a drill + verification checklist. Bias toward a plan you can actually execute under pressure; call out every step that requires stopping a process or that risks data loss, and never present an untested restore path as proven.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
VictoriaMetrics Capacity Planning and Resource Sizing Prompt
Build a capacity model for VictoriaMetrics — deriving CPU, RAM, disk, and node counts from ingestion rate, active series, churn, and retention, with headroom for query load and growth.
-
VictoriaMetrics Single-Node vs Cluster Scaling Prompt
Decide when to move from single-node VictoriaMetrics to the cluster (vminsert/vmselect/vmstorage) topology, size the storage tier, and scale it out safely with replication and rerouting understood.
-
VictoriaMetrics Downsampling ROI and Storage Cost Forecasting Prompt
Model the dollar and disk impact of downsampling and retention changes in VictoriaMetrics — projecting storage growth, per-tier savings, and payback — so cost decisions are made on arithmetic instead of vibes.
-
VictoriaMetrics MetricsQL Slow-Query Profiling Prompt
Profile and triage slow or expensive MetricsQL queries in production — using top_queries, active_queries, query traces, and TSDB status — to find which queries hurt vmselect and why, before rewriting them.
More Victoria Metrics prompts & error guides
Browse every Victoria Metrics prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.