Files
marcocosta10000 a620f83dd8 feat(city): add player marketplace, mission journal, character customization and presence
- Player-to-player marketplace with listings, buying and selling
- Mission system with progress tracking and money rewards
- Character appearance customization (skin, hair, face, beard, accessory)
- Multiplayer presence feed showing nearby citizens in near-real-time
- Admin world dashboard with live platform metrics
- Bus and train transportation with temporary ride state
- Mobile joystick controls and minimap HUD
- Education bonus applied to work salary
2026-10-17 22:51:20 -03:00

12 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
# City10 database backup — run on the cloud host (cron recommended daily).
set -euo pipefail
cd "$(dirname "$0")/.."
STAMP="$(date +%Y%m%d-%H%M%S)"
mkdir -p storage/app/backups
mysqldump --single-transaction --no-tablespaces \
-h"${DB_HOST:-127.0.0.1}" -P"${DB_PORT:-3306}" \
-u"${DB_USERNAME}" -p"${DB_PASSWORD}" \
"${DB_DATABASE}" | gzip > "storage/app/backups/city10-${STAMP}.sql.gz"
echo "Backup written to storage/app/backups/city10-${STAMP}.sql.gz"