Run backups daily for any production deployment. Store backup files off-server — on a network share, cloud storage, or a separate machine — so that a server failure does not destroy your backups at the same time as your data.
Automatic pre-update backups
Every time you runbash update.sh, Collabase automatically creates a database backup in deployment/backups/ before applying the update. These backups are kept for 7 days and then removed automatically. They are intended as a safety net for rollbacks, not as your primary backup strategy.
Pre-update backups cover the database only. Uploaded files are not included. Set up your own regular backup schedule (see below) that covers both the database and file storage.
What to back up
Backing up the database
Manual backup
Run the following command on your server to create a compressed backup of the database:.sql.gz file in your current directory.
Scheduled daily backup
For production systems, set up a daily automated backup using cron. Open the cron editor withcrontab -e and add:
Backing up file storage
Local filesystem
If files are stored locally (the default), copy the file storage directory to your backup destination:S3-compatible storage
If you use S3 or a compatible provider (Cloudflare R2, MinIO, etc.), use your provider’s sync or versioning features. Enable object versioning in your bucket settings so previous versions of files are retained automatically.Copying backups off-server
Always store backups in a second location. Some common options: Cloud storage (AWS S3, Cloudflare R2, etc.)Restoring from a backup
1
Stop the application (keep the database running)
2
Restore the database backup
Replace the filename with your actual backup file:
3
Restore uploaded files (if applicable)
Copy your file backup back to the storage location:Skip this step if you use S3 storage — the files remain in your bucket.
4
Start the application
5
Verify the restore
Open Collabase in a browser and confirm that content, users, and settings are as expected.
.png?fit=max&auto=format&n=V5LGcGniNC1X_QJO&q=85&s=8c9ba3ce9a0d0045976180c9f669af26)
