How to Create a Backup
* 
This page requires advanced Docker and Docker-Compase know how.
* 
In order to keep the data consistence stop the running docker containers. This approach is not intended to be used in a production system, it is just an example.
How to create backups
You can create a clone of you volume with the following command:
docker run --rm -v codebeamer-db-data:/vol -w /vol alpine tar -c . > codebeamer-db-data.tar

docker run --rm -v codebeamer-app-repository-docs:/vol -w /vol alpine tar -c . > codebeamer-app-repository-docs.tar

docker run --rm -v codebeamer-app-repository-search:/vol -w /vol alpine tar -c . > codebeamer-app-repository-search.tar

docker run --rm -v codebeamer-app-logs:/vol -w /vol alpine tar -c . > codebeamer-app-logs.tar
How to restore backups
You can restore these backups with the following commands:
docker volume rm codebeamer-db-data

docker volume create codebeamer-db-data

docker run --rm -v codebeamer-db-data:/vol -w /vol -i alpine tar -x < codebeamer-db-data.tar
* 
We do not take any responsibility and we are not liable for any damage caused through use of this image, be it indirect, special, incidental or consequential damages (including but not limited to damages for loss of business, loss of profits, interruption or the like). We highly recommend to create daily backups, and keep them for several days.
Was this helpful?