$ mysqldump -u forge -p --single-transaction --routines --triggers your_database > /tmp/database_backup.sql
mysqldump -u forge -p --single-transaction --routines --triggers your_database > /tmp/database_backup.sql
mysqldump -u forge -p --single-transaction --routines --triggers your_database > /tmp/database_backup.sql
pg_dump -U forge -h localhost your_database > /tmp/database_backup.sql
pg_dump -U forge -h localhost your_database > /tmp/database_backup.sql
pg_dump -U forge -h localhost your_database > /tmp/database_backup.sql
scp /tmp/database_backup.sql deploynix@your-new-server-ip:/tmp/
scp /tmp/database_backup.sql deploynix@your-new-server-ip:/tmp/
scp /tmp/database_backup.sql deploynix@your-new-server-ip:/tmp/
mysql -u your_db_user -p your_database < /tmp/database_backup.sql
mysql -u your_db_user -p your_database < /tmp/database_backup.sql
mysql -u your_db_user -p your_database < /tmp/database_backup.sql
psql -U your_db_user -h localhost your_database < /tmp/database_backup.sql
psql -U your_db_user -h localhost your_database < /tmp/database_backup.sql
psql -U your_db_user -h localhost your_database < /tmp/database_backup.sql
your-new-server-ip yourdomain.com
your-new-server-ip yourdomain.com
your-new-server-ip yourdomain.com - Provider and region (e.g., DigitalOcean NYC3, Hetzner Falkenstein)
- Server size (RAM, CPU, disk)
- PHP version (8.1, 8.2, 8.3, 8.4)
- Database type and version (MySQL 8, PostgreSQL 15, etc.)
- Operating system (Ubuntu 22.04, 24.04)
- Any custom packages installed via recipes or SSH - Domain name(s) and any aliases
- Repository URL and branch
- Web directory (usually /public)
- Environment variables — Export or copy your entire .env file
- SSL certificate type (Let's Encrypt, custom)
- Nginx configuration — Copy any custom directives
- Deployment script — If you have customized the default deploy script, copy it - Queue workers — Command, number of processes, connection, queue names
- Daemons — Any custom long-running processes
- Cron jobs / Scheduled tasks — What is in your scheduler and what cron entries Forge manages
- Firewall rules — Any custom rules beyond the defaults - Database name
- Database users and their permissions
- Database size (so you can plan server sizing appropriately)
- Whether you use database backups and where they are stored - A records pointing to your Forge server IPs
- CNAME records for any subdomains
- MX records (these typically will not change, but document them)
- TXT records (SPF, DKIM, DMARC) - DB_HOST — Should be 127.0.0.1 or localhost for an App Server
- DB_DATABASE, DB_USERNAME, DB_PASSWORD — Use the credentials Deploynix generated, or create a database matching your existing names
- CACHE_STORE — Set to redis to use Valkey
- SESSION_DRIVER — Set to redis
- QUEUE_CONNECTION — Set to redis if you use queues