Auto-sync: 20260113-093539
This commit is contained in:
29
MINECRAFT.md
29
MINECRAFT.md
@@ -250,21 +250,23 @@ The editor is hosted by LuckPerms, so no additional port forwarding is needed.
|
||||
|
||||
### Automated Backups to TrueNAS
|
||||
|
||||
Backups run automatically every 6 hours and are stored on TrueNAS.
|
||||
Backups run automatically every 2 hours and are stored on TrueNAS for both servers.
|
||||
|
||||
| Setting | Value |
|
||||
|---------|-------|
|
||||
| **Destination** | TrueNAS (10.10.10.200) |
|
||||
| **Path** | `/mnt/vault/users/backups/minecraft/` |
|
||||
| **Frequency** | Every 6 hours (12am, 6am, 12pm, 6pm) |
|
||||
| **Retention** | 14 backups (~3.5 days of history) |
|
||||
| **Size** | ~2.3 GB per backup |
|
||||
| **Script** | `/home/hutson/minecraft-backup.sh` on docker-host2 |
|
||||
| **Frequency** | Every 2 hours (12 backups per day) |
|
||||
| **Retention** | 30 backups per server (~2.5 days of history) |
|
||||
| **Hutworld Size** | ~2-7 GB per backup |
|
||||
| **Backrooms Size** | ~100-150 MB per backup |
|
||||
| **Script** | `/home/hutson/minecraft-backup-all.sh` on docker-host2 |
|
||||
| **Log** | `/home/hutson/minecraft-backup.log` on docker-host2 |
|
||||
|
||||
### Backup Script
|
||||
### Backup Scripts
|
||||
|
||||
**Location:** `~/minecraft-backup.sh` on docker-host2
|
||||
**Main Script:** `~/minecraft-backup-all.sh` on docker-host2 (backs up both servers)
|
||||
**Legacy Script:** `~/minecraft-backup.sh` on docker-host2 (Hutworld only)
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
@@ -292,10 +294,10 @@ sshpass -p 'GrilledCh33s3#' scp -o StrictHostKeyChecking=no "$LOCAL_BACKUP" "$BA
|
||||
# Clean up local temp file
|
||||
rm -f "$LOCAL_BACKUP"
|
||||
|
||||
# Keep only last 14 backups on TrueNAS
|
||||
# Keep only last 30 backups on TrueNAS
|
||||
sshpass -p 'GrilledCh33s3#' ssh -o StrictHostKeyChecking=no hutson@10.10.10.200 '
|
||||
cd /mnt/vault/users/backups/minecraft
|
||||
ls -t hutworld-*.tar.gz 2>/dev/null | tail -n +15 | xargs -r rm -f
|
||||
ls -t hutworld-*.tar.gz 2>/dev/null | tail -n +31 | xargs -r rm -f
|
||||
'
|
||||
```
|
||||
|
||||
@@ -305,7 +307,7 @@ sshpass -p 'GrilledCh33s3#' ssh -o StrictHostKeyChecking=no hutson@10.10.10.200
|
||||
# View current schedule
|
||||
ssh docker-host2 'crontab -l | grep minecraft'
|
||||
|
||||
# Output: 0 */6 * * * /home/hutson/minecraft-backup.sh >> /home/hutson/minecraft-backup.log 2>&1
|
||||
# Output: 0 */2 * * * /home/hutson/minecraft-backup-all.sh >> /home/hutson/minecraft-backup.log 2>&1
|
||||
```
|
||||
|
||||
### Manual Backup Commands
|
||||
@@ -609,10 +611,11 @@ tar -xzf /tmp/hutworld-*.tar.gz -C /tmp --strip-components=2 \
|
||||
|
||||
## Migration History
|
||||
|
||||
### 2026-01-04: Backup System
|
||||
### 2026-01-04: Backup System (Updated 2026-01-13)
|
||||
|
||||
- Configured automated backups to TrueNAS every 6 hours
|
||||
- Set 14-backup retention (~3.5 days of recovery points)
|
||||
- Configured automated backups to TrueNAS
|
||||
- **Updated frequency:** Every 2 hours (was 6 hours)
|
||||
- **Updated retention:** 30 backups (~2.5 days) (was 14 backups)
|
||||
- Created backup script with compression and cleanup
|
||||
- Storage: `/mnt/vault/users/backups/minecraft/`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user