Run the platform · Keep it running
Backups
The three things to copy so that nothing can be lost.
Three things hold everything. With copies of all three you can rebuild the installation on any server.
#What to copy
| What | Why | How |
|---|---|---|
| The database | Every workspace, contact, message, plan and payment | cPanel: Backup or phpMyAdmin → Export. Terminal: mysqldump -u convoq -p convoq > convoq.sql |
The .env file | It holds APP_KEY, which decrypts the saved secrets | Download it from the application folder |
The apps/api/storage folder | Uploaded media and logos | Compress and download the folder |
With Docker, the last two are in the app_data volume and the database is in database_data.
#How often
Back up the database every day once you have customers, and before every update. The storage folder grows with every photo and document; copy it at least once a week. The .env file only changes when you change a setting.
A database backup without the matching .env file can be read, but the channel tokens and payment keys inside it cannot be decrypted. Keep them together.
#Restoring
Upload the same version of Convoq to the new server and install its packages, as in the install guide. Do not open the site yet.
Import the database backup into an empty database.
Put your
.envfile in the application folder. Correct the database values in it if they are different on the new server.Put the storage folder back at
apps/api/storage.Start the application. Because the
.envfile is there, the setup wizard does not appear. Check Admin → System.