When to restore
Restore a backup when the data on the server is damaged or gone:- The server was lost or rebuilt and you are setting up Collabase again.
- The database was damaged, or large parts of the content were deleted by mistake.
- An update failed and
bash update.sh rollbackdid not bring the application back. See Updates.
What you need
Backups in
deployment/docker/backups/ are deleted after 7 days, every time a backup or an update runs. Copy the backup you want to restore to another folder first, so it cannot be removed while you work.Prepare
1
Copy the backup pair out of the backups folder
/root/restore/ instead.2
Back up the current state
3
On a new server only: install Collabase with the old configuration
Unzip the deployment package, copy the old The installer finds the existing
.env file to deployment/docker/.env, then run:.env and uses it. If the file contains a COLLABASE_VERSION line, that version is installed. The installed version must be the same as the one the backup was taken with, or newer.Restore the database and the files
One command stops the application, restores the database and the uploaded files, and starts the application again. The database keeps running during the restore.1
Start the restore
2
Check what will be replaced
The command shows which database backup and which files backup it will use. If it says No matching files archive, cancel by typing anything other than
restore, then start again with the files backup as a second argument.3
Confirm
Type
restore and press Enter. The command stops the application, replaces the database, restores the files and starts Collabase again.4
Wait for the end message
The restore ends with Done. If the backup is older than the installed version, Collabase brings the database up to date on this start. That can take a few minutes.
Verify the restore
1
Check that the application is healthy
2
Sign in
Open Collabase in a browser and sign in with an account that existed at the time of the backup.
3
Open a project
Open a project you know and check that its work items are there, up to the time of the backup.
4
Open an attachment
Open a work item or page with an attachment and download the file. If the file is missing, the database was restored without the files backup.
If the restore fails
If you cannot resolve the problem, collect a support bundle and send it to Collabase support:
Restoring one deleted project or work item
When someone deletes a single project, work item, page or Space by mistake, restore it from the trash. The rest of the data stays as it is. Deleted projects and work items stay in the trash for 30 days. Go to Administration → Data & Backup → Trash, find the item and click Restore. A restored project comes back with its phases, members, sprints, costs and the other parts it had. See Trash for what is restored and when items are deleted for good. Use a full restore only when the item is no longer in the trash.Related pages
- Backup & Restore: what a backup contains and how to schedule it
- Updates: rolling back a failed update
- Troubleshooting: diagnosing a server that does not start