Backup and Disaster Recovery

Backup and Disaster Recovery

Guides an AI coding agent to implement backup strategies, disaster recovery plans, cross-region failover and restore procedures for infrastructure and databases.

Skill files7 files

references/

scripts/

templates/

SKILL.md100 lines
1
---
2
name: backup-disaster-recovery
3
description: >
4
Implement backup strategies, disaster recovery plans, and data restoration
5
procedures for protecting critical infrastructure and data.
6
---
7
8
# Backup and Disaster Recovery
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Design and implement comprehensive backup and disaster recovery strategies to ensure data protection, business continuity, and rapid recovery from infrastructure failures.
21
22
## When to Use
23
24
- Data protection and compliance
25
- Business continuity planning
26
- Disaster recovery planning
27
- Point-in-time recovery
28
- Cross-region failover
29
- Data migration
30
- Compliance and audit requirements
31
- Recovery time objective (RTO) optimization
32
33
## Quick Start
34
35
Minimal working example:
36
37
```yaml
38
# postgres-backup-cronjob.yaml
39
apiVersion: v1
40
kind: ConfigMap
41
metadata:
42
name: backup-script
43
namespace: databases
44
data:
45
backup.sh: |
46
#!/bin/bash
47
set -euo pipefail
48
49
BACKUP_DIR="/backups/postgresql"
50
RETENTION_DAYS=30
51
DB_HOST="${POSTGRES_HOST}"
52
DB_PORT="${POSTGRES_PORT:-5432}"
53
DB_USER="${POSTGRES_USER}"
54
DB_PASSWORD="${POSTGRES_PASSWORD}"
55
56
export PGPASSWORD="$DB_PASSWORD"
57
58
# Create backup directory
59
mkdir -p "$BACKUP_DIR"
60
61
# Full backup
62
BACKUP_FILE="$BACKUP_DIR/full-$(date +%Y%m%d-%H%M%S).sql"
63
// ... (see reference guides for full implementation)
64
```
65
66
## Reference Guides
67
68
Detailed implementations in the `references/` directory:
69
70
| Guide | Contents |
71
|---|---|
72
| [Database Backup Configuration](references/database-backup-configuration.md) | Database Backup Configuration |
73
| [Disaster Recovery Plan Template](references/disaster-recovery-plan-template.md) | Disaster Recovery Plan Template |
74
| [Backup and Restore Script](references/backup-and-restore-script.md) | Backup and Restore Script |
75
| [Cross-Region Failover](references/cross-region-failover.md) | Cross-Region Failover |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Perform regular backup testing
82
- Use multiple backup locations
83
- Implement automated backups
84
- Document recovery procedures
85
- Test failover procedures regularly
86
- Monitor backup completion
87
- Use immutable backups
88
- Encrypt backups at rest and in transit
89
90
### ❌ DON'T
91
92
- Rely on a single backup location
93
- Ignore backup failures
94
- Store backups with production data
95
- Skip testing recovery procedures
96
- Over-compress backups beyond recovery speed needs
97
- Forget to verify backup integrity
98
- Store encryption keys with backups
99
- Assume backups are automatically working
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,421 prompts

More by @OpenSourceBuffGuy

See all
Dark Cinematic Close-Up with Extreme Skin Detail prompt image

Dark Cinematic Close-Up with Extreme Skin Detail

Draws an extreme close-up cinematic portrait lit by a single narrow cold spotlight, with pores, stubble, lashes and iris described in microscopic detail against total darkness.

image-prompt, portrait, close-up, face-reference, reference-image, dramatic-lighting, photorealistic, cinematic, moody, macro, man, nano-banana, studio-lighting, negative-space, low-angle, film-noir, for-photographers, for-artists, character-consistency, long-form, advanced, night-scene, headshot

Skateboard selection screen with HotDog Dash selected prompt image

Skateboard selection screen with HotDog Dash selected

Plans a 15-second game clip that moves from a skateboard selection screen into a live city world, with every UI state and sound cue set per timed beat.

video-prompt, hailuo, timed-beats, reference-image, image-to-video, character-consistency, state-tracking, structured-output, motion-graphics, scene-transitions, video-games, game-development, action, camera-movement, sound-effects, multi-shot, ui-mockup, animation, advanced, long-form, transformation, for-gamers, dance

Blue and gold character tree with doll ornaments prompt image

Blue and gold character tree with doll ornaments

Turns a reference character into a lavishly decorated Christmas tree with themed plush ornaments, matching lights and a character topper.

image-prompt, reference-image, photo-editing, christmas, holiday, photorealistic, nano-banana, placeholders, structured-output, character-design, cozy, luxury, still-life, golden-hour, soft-lighting, vibrant-colors, wide-shot, for-artists, gift-ideas, vertical-format

Reviews

Loading reviews…

Discussion

Loading comments…