We have a bitbucket server that talks to external mysql database (both run on same physical host). Is it feasible to back it up by following procedure in specific order outlined below?
1. create mysqldump of the bitbucket db.
2. create a tarball of BITBUCKET_HOME (or the data directory)
Any reason why above approach isn't a valid backup approach? Are there any pitfalls of not using the diy scripts for creating the backups?
Thanks!
Hi Lokesh,
The data recovery and backups page describes the various options to create a backup in Bitbucket Server.
There is a backup client or you can also use the DIY scripts starting from the provided samples.
The DIY script already contains the logic to perform the operations in a way very similar to the one you are describing.
On top of that, it also puts Bitbucket Server in a locked status preventing any users to perform any changes while the backup is being taken.
This step is required to avoid data corruption or inconsistencies.
I would suggest using the provided scripts as a starting point and let us know if they don't cover your use case.
Thanks,
Caterina - Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.