You can use custom json configuration files to gain finer control over your backup/migration jobs.
Common scenarios for using custom config files include:
- Filtering git repositories by name (wildcard supported)
- Filtering build/release pipelines by name (wildcard supported)
- Filtering work items based on a WIQL query
- Overriding default git credentials for git repositories and wikis
You will need to supply the useCustomConfigurations and customConfigurationPath parameters in the task configuration, like this:
useCustomConfigurations: true
customConfigurationPath: '$(System.DefaultWorkingDirectory)/custom-configs'This will configure the task to read your custom json configuration files from the $(System.DefaultWorkingDirectory)/custom-configs directory.
Our recommendation is to store the config files in a git repository in the same project as the backup pipeline. You can either store the config files:
- in the same repository as the backup pipeline definitions (specify the correct folder)
- OR in a separate repository and checkout your configuration repository in the pipeline with the
resourceskeyword.
You can view templates for individual configuration files for each ADO component here https://github.com/solidify/azure-devops-backup-tool-docs/tree/main/config-templates.
You can find documentation and usage samples with example configuration files for each ADO component here: https://github.com/solidify/azure-devops-backup-tool-docs/tree/main/adapter-docs
You config files must follow the naming pattern config-[resource]-[export/import].json. The following list shows all the valid config file names:
config-areapath-export.jsonconfig-areapath-import.jsonconfig-artifact-export.jsonconfig-artifact-import.jsonconfig-board-export.jsonconfig-board-import.jsonconfig-dashboard-export.jsonconfig-dashboard-import.jsonconfig-deploymentgroup-export.jsonconfig-deploymentgroup-import.jsonconfig-environment-export.jsonconfig-environment-import.jsonconfig-git-export.jsonconfig-git-import.jsonconfig-gitbranchpolicy-export.jsonconfig-gitbranchpolicy-import.jsonconfig-iterationpath-export.jsonconfig-iterationpath-import.jsonconfig-pipeline-export.jsonconfig-pipeline-import.jsonconfig-pullrequest-export.jsonconfig-pullrequest-import.jsonconfig-query-export.jsonconfig-query-import.jsonconfig-team-export.jsonconfig-team-import.jsonconfig-testplan-export.jsonconfig-testplan-import.jsonconfig-variablegroup-export.jsonconfig-variablegroup-import.jsonconfig-wiki-export.jsonconfig-wiki-import.jsonconfig-witprocess-export.jsonconfig-witprocess-import.jsonconfig-witprocessxml-export.jsonconfig-witprocessxml-import.jsonconfig-workitem-export.jsonconfig-workitem-import.json
For configuration samples and more documentation on usage of custom configuration files and individual export/import adapters, visit https://github.com/solidify/azure-devops-backup-tool-docs.