TeamCity allows administrator to restore previously backed up data using the maintainDB command line utility.
To restore TeamCity server from previously saved backup file, ensure TeamCity server is not running and target TeamCity Data Directory and database are present, but empty.
-A argument can be omitted if you have TEAMCITY_DATA_PATH environment variable set.
By default, maintainDB looks for the specified backup file in the default backup directory: <TeamCity Data Directory>/backup. If the file is not found, the process will be aborted with an error. To override this setting, you can specify the absolute path to the desired backup file in a custom directory with the -A option.
By default, if no other option that -F is specified, all of the backed up scopes will be restored from the backup file. To restore only specific scopes from the backup file, use corresponding options of the maintainDB utility: -C, -D, -L, and -P.
You can restore data into another empty database. Types of the source (from which the data is backed up) and target (to which the data will be restored) databases don't matter. For instance, you can restore data from a HSQL database to a MySQL database, as well as restore a backup of MySQL database to a new MySQL database.
To restore database data to another database:
To restore database only, use the -D option.
Skip to end of metadata Go to start of metadata