mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
backup import/export docs
This commit is contained in:
15
README.md
15
README.md
@@ -310,6 +310,10 @@ docker exec -it ac-mysql mysql -u root -p
|
||||
./scripts/backup.sh # Create immediate backup
|
||||
./scripts/restore.sh YYYYMMDD_HHMMSS # Restore from specific backup
|
||||
|
||||
# User data backup/import utilities
|
||||
./backup-export.sh [output_dir] # Export user accounts & characters
|
||||
./backup-import.sh [backup_dir] # Import user data from backup
|
||||
|
||||
# View available backups
|
||||
ls -la storage/backups/
|
||||
```
|
||||
@@ -467,6 +471,17 @@ storage/backups/
|
||||
├── acore_auth.sql.gz
|
||||
├── acore_characters.sql.gz
|
||||
└── acore_world.sql.gz
|
||||
|
||||
# User data import/export
|
||||
ExportBackup_YYYYMMDD_HHMMSS/ # Created by backup-export.sh
|
||||
├── acore_auth.sql.gz # User accounts
|
||||
├── acore_characters.sql.gz # Character data
|
||||
└── manifest.json
|
||||
|
||||
ImportBackup/ # Used by backup-import.sh
|
||||
├── acore_auth.sql[.gz] # Required: accounts
|
||||
├── acore_characters.sql[.gz] # Required: characters
|
||||
└── acore_world.sql[.gz] # Optional: world data
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -8,7 +8,7 @@ DB_CHAR="${DB_CHARACTERS_NAME:-acore_characters}"
|
||||
|
||||
usage(){
|
||||
cat <<EOF
|
||||
Usage: ./export-user-backup.sh [output_dir]
|
||||
Usage: ./backup-export.sh [output_dir]
|
||||
|
||||
Creates a timestamped backup of the auth and character databases.
|
||||
If output_dir is provided, places the timestamped folder inside it
|
||||
@@ -15,7 +15,7 @@ COLOR_RESET='\033[0m'
|
||||
|
||||
usage(){
|
||||
cat <<EOF
|
||||
Usage: ./import-user-backup.sh [backup_dir]
|
||||
Usage: ./backup-import.sh [backup_dir]
|
||||
|
||||
Restores user accounts and characters from a backup folder.
|
||||
|
||||
Reference in New Issue
Block a user