This chapter covers the core features and capabilities of Backup Automation.
# Run a backup using the example config
python src/backup_tool.py backup --config examples/backup_config.json
# Dry run — preview what would be backed up
python src/backup_tool.py backup --config examples/backup_config.json --dry-run
# List all existing backups
python src/backup_tool.py list --config examples/backup_config.json
# Verify backup integrity (check checksums)
python src/backup_tool.py verify --config examples/backup_config.json
# Restore from a specific backup
python src/backup_tool.py restore --config examples/backup_config.json --backup-id 20260314-100000 --target ./restored/
# Apply rotation policy (delete old backups)
python src/backup_tool.py rotate --config examples/backup_config.jsonFollow this guide to get Backup Automation up and running in your environment.
| Field | Type | Required | Description |
|---|---|---|---|
backup_name | string | Yes | Name for this backup job |
sources | array | Yes | Directories/files to back up |
destination | string | Yes | Directory to store backups |
rotation | object | No | Rotation policy: keep_count or keep_days |
exclude_patterns | array | No | Glob patterns to exclude (e.g., *.pyc, __pycache__) |
compression | string | No | Compression: gzip (default) or none |
verify_after | bool | No | Verify checksums immediately after backup (default: true) |
| Command | Description |
|---|---|
backup | Run a backup job |
list | List existing backups |
verify | Verify backup integrity |
restore | Restore from a backup |
rotate | Apply rotation policy |
| Flag | Description |
|---|---|
--config, -c | Path to the JSON backup config (required) |
--dry-run | Preview without creating backups |
--backup-id | Specific backup ID for restore/verify |
--target | Target directory for restore |
--format, -f | Output format: text or json |
--verbose, -v | Enable verbose logging |
Get the full Backup Automation and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.