backup imports

This commit is contained in:
uprightbass360
2025-11-10 03:00:11 -05:00
parent 68dc21d5ef
commit 66667c1e85
6 changed files with 32 additions and 21 deletions

View File

@@ -443,7 +443,7 @@ docker exec -it ac-mysql mysql -u root -p
./scripts/bash/backup-export.sh storage/backups/ExportBackup_manual_$(date +%Y%m%d_%H%M%S)
# Import data from a directory that contains the SQL dumps
./scripts/bash/backup-import.sh --backup-dir storage/backups/ImportBackup --password azerothcore123
./scripts/bash/backup-import.sh --backup-dir storage/backups/ExportBackup_20241029_120000 --password azerothcore123
# View available backups
ls -la storage/backups/

View File

@@ -127,13 +127,13 @@ ExportBackup_YYYYMMDD_HHMMSS/
Restores user accounts and characters from backup while preserving world data.
```bash
./scripts/bash/backup-import.sh --backup-dir storage/backups/ImportBackup --password azerothcore123
./scripts/bash/backup-import.sh --backup-dir storage/backups/ExportBackup_20241029_120000 --password azerothcore123
# Restore directly from an ExportBackup archive you just unpacked
./scripts/bash/backup-import.sh --backup-dir ExportBackup_20241029_120000 --password azerothcore123 --all
```
> The importer always requires `--backup-dir`. A common workflow is to extract an `ExportBackup_*` archive into `storage/backups/ImportBackup/` and pass that directory to the script, but you can point to any folder that contains the SQL dumps.
> The importer always requires `--backup-dir`. A common workflow is to extract an `ExportBackup_*` archive into `storage/backups/` (so automated jobs can see it) and pass that directory to the script, but you can point to any folder that contains the SQL dumps.
**Required Files:**
- `acore_auth.sql[.gz]` - User accounts (required)

View File

@@ -105,12 +105,12 @@ ExportBackup_YYYYMMDD_HHMMSS/ # Created by scripts/bash/backup-export.sh
├── acore_characters.sql.gz # Character data
└── manifest.json
ImportBackup/ # Optional staging area (use with --backup-dir)
├── acore_auth.sql[.gz] # Required: accounts
├── acore_characters.sql[.gz] # Required: characters
└── acore_world.sql[.gz] # Optional: world data
ExportBackup_YYYYMMDD_HHMMSS/ # Optional manual drop-in under storage/backups/
├── acore_auth.sql.gz
├── acore_characters.sql.gz
└── manifest.json
Place extracted dumps from any `ExportBackup_*` archive into this directory (or any other directory you prefer) and pass it to `scripts/bash/backup-import.sh --backup-dir <path>` when performing a manual restore.
Place extracted dumps from any `ExportBackup_*` archive inside `storage/backups/` (for automatic detection) or pass the directory directly to `scripts/bash/backup-import.sh --backup-dir <path>` when performing a manual restore.
```
---