Files
Claude 09330ec8f5 feat: Add world-backup deployment package
Created complete deployment package for world backup automation:

Files Added:
- world-backup.py (300+ lines, production-ready)
- backup-config.json.example (complete config template)
- README.md (quick deploy guide)

Features:
- Automated world downloads via Pterodactyl
- Compression to tar.gz (~80% size reduction)
- Upload to NextCloud via WebDAV
- Retention policy application (7 daily, 4 weekly, 12 monthly)
- Discord notifications (start, per-server, completion)
- Comprehensive error handling and logging

Configuration:
- All 10 Minecraft servers configured
- NextCloud WebDAV integration
- Discord webhook support
- Staging directory management

Ready to deploy on Command Center.

Complements: docs/tasks/world-backup-automation/deployment-plan.md

FFG-STD-002 compliant
2026-02-18 00:30:59 +00:00

79 lines
1.6 KiB
Markdown

# World Backup Automation - Deployment Package
**Version:** 1.0.0
**Created:** 2026-02-17
**For:** Firefrost Gaming infrastructure
---
## Package Contents
- `world-backup.py` - Main backup script (Python 3)
- `backup-config.json.example` - Configuration template
- `README.md` - This file
---
## Quick Deploy
```bash
# Copy to Command Center
scp -r world-backup root@63.143.34.217:/opt/automation/
# SSH to Command Center
ssh root@63.143.34.217
# Navigate to backup directory
cd /opt/automation/world-backup
# Copy config template
cp backup-config.json.example backup-config.json
# Edit configuration (add API keys, passwords)
nano backup-config.json
# Install dependencies
pip3 install requests --break-system-packages
# Create staging directory
mkdir -p /opt/automation/backup-staging
# Test run
python3 world-backup.py
# Schedule with cron (3:30 AM daily, before restarts at 4 AM)
crontab -e
# Add: 30 3 * * * /usr/bin/python3 /opt/automation/world-backup/world-backup.py >> /var/log/world-backup.log 2>&1
```
---
## Configuration
Edit `backup-config.json` and update:
1. **Pterodactyl API key** - Get from panel.firefrostgaming.com
2. **NextCloud password** - Get from Vaultwarden
3. **Discord webhook URL** - Create in Discord server settings
---
## Requirements
- Python 3.9+
- `requests` library
- NextCloud or S3-compatible storage
- Pterodactyl API access
- ~200 GB storage for backups
---
## Documentation
See full deployment guide:
`docs/tasks/world-backup-automation/deployment-plan.md`
---
**Fire + Frost + Foundation = Where Love Builds Legacy** 💙🔥❄️