# mc-backup — world backups

## Summary

`itzg/mc-backup` alongside the server, talking via RCON. Snapshots the world every
6h, prunes after 14 days. World-only (no mod jars — mods are reproducible from the
packwiz pack). Unchanged from the original design; lowest-priority service.

## Config (carry-over)

```yaml
mc-backup:
  image: itzg/mc-backup
  environment:
    BACKUP_INTERVAL: "6h"
    RCON_HOST: "minecraft"
    RCON_PASSWORD: ${RCON_PASSWORD}
    PRUNE_BACKUPS_DAYS: "14"
    TZ: "Europe/Madrid"
  volumes:
    - mc_data:/data:ro
    - ./backups:/backups
```

## Tasks

- [ ] Keep `mc-backup` service on `mcnet`, `depends_on: minecraft`
- [ ] Confirm RCON enabled on server (`ENABLE_RCON`, `RCON_PASSWORD`)
- [ ] Verify `./backups/` is gitignored (already is)
- [ ] Optional: shorter interval / manual `rcon save-all` before risky changes
