mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
adds import folder
This commit is contained in:
37
database-import/README.md
Normal file
37
database-import/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Database Import
|
||||
|
||||
Place your database backup files here for automatic import during deployment.
|
||||
|
||||
## Supported Files
|
||||
- `.sql` files (uncompressed SQL dumps)
|
||||
- `.sql.gz` files (gzip compressed SQL dumps)
|
||||
|
||||
## How to Use
|
||||
|
||||
1. **Copy your backup files here:**
|
||||
```bash
|
||||
cp my_auth_backup.sql.gz ./database-import/
|
||||
cp my_world_backup.sql.gz ./database-import/
|
||||
cp my_characters_backup.sql.gz ./database-import/
|
||||
```
|
||||
|
||||
2. **Run deployment:**
|
||||
```bash
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
3. **Files are automatically copied to backup system** and imported during deployment
|
||||
|
||||
## File Naming
|
||||
- Any filename works - the system will auto-detect database type by content
|
||||
- Recommended naming: `auth.sql.gz`, `world.sql.gz`, `characters.sql.gz`
|
||||
|
||||
## What Happens
|
||||
- Files from this folder are copied to `local-storage/backups/daily/`
|
||||
- Database import system automatically restores them
|
||||
- Original files remain here for reference
|
||||
|
||||
## Notes
|
||||
- Only processed on first deployment (when databases don't exist)
|
||||
- Files are copied with timestamp to backup directory
|
||||
- Empty folder is ignored - no files, no import
|
||||
Reference in New Issue
Block a user