TeamCity backup time
My production TeamCity (with 180 active projects with 540 build configurations) data folder on the disk is backed up using the maintainDB tool. It takes in excess of 7 hours to create a backup file. This is in addition to the time it takes to push that to the cloud and move it to a different region for disaster recovery, which takes an additional 5 hours. Is this expected behavior? I know TeamCity isn't built with disaster recovery in mind but I just wanted to check before I gave up on the DR effort.
Please sign in to leave a comment.
Hi Anand,
The time teamcity takes for the backup will depend on what you are backing up. If you have a 7 day clean up policy, then it's very likely a lot and not expected. If you are backing up months of artifacts, then probably yes. You can have artifacts in external storage: https://confluence.jetbrains.com/display/TCD18/Configuring+Artifacts+Storage, so you can exclude them from the backup.
Internal artifacts and build history might take some time if they are a lot, they are kept in the data directory (internal artifacts) and the database (data directory). Cleaning up older ones would be recommended to reduce time.