Summary
Export part or all of the server data to an XML file.--compress
can be used to compress the XML output. --excludeJobs
can be used to exclude jobs from the export data. --path
exports the single object specified by the path. The default is to export all data in the system.The export is executed by the CloudBees CD/RO service user. Before you perform an export, ensure the CloudBees CD/RO server is inactive and cannot accept jobs, by completing the following steps on the server:
-
Disable any polling triggers and all project schedules.
-
Navigate to
. -
In the Enabled column, disable any active triggers.
-
Navigate to
. -
Select Electric Cloud from the Projects tab.
-
Select the Schedules tab, and disable all schedules.
-
-
Ensure all jobs are stopped.
-
Navigate to
. -
Select the Jobs tab.
-
Review the jobs list and take action to stop all jobs.
-
-
Disable all resources so that no new job steps can run.
-
Navigate to
. -
Disable each resource by clearing its state from the Enabled column.
-
A quiescent database ensures a complete XML database file is exported. As a best practice, exporting individual projects is preferred to exporting the full database. If it is necessary to perform a full export, do it during a quite period noting the following:
-
It is memory intensive.
-
It can perform slowly, possibly taking days depending on the amount of data to export.
-
The default timeout is 10800 seconds (180 minutes or 3 hours).
A full export/import preserves job IDs, but a partial import preserves names only, and not IDs. |
For a list of object types in CloudBees CD/RO, refer to Object types in CloudBees CD/RO. |
fileNameStringrequiredThe filename from/to which the import/export is done. compressBooleanoptionalIf true, the output will be compressed. disableProjectTrackingBooleanoptionalIf set to true when importing or exporting a project, even if the original project had change tracking enabled, make change tracking of the newly imported or exported project be disabled from its creation. If you don't need to track changes to the new project, this avoids the change tracking overhead that would otherwise slow down the import operation, and also saves having to subsequently disable change tracking of the reimported project. downloadBooleanoptionalExport file will be available to download. excludeJobsBooleanoptionalTrue to exclude jobs from the export. objectIdUUIDoptionalObject ID. objectTypeStringoptionalObject type. pathStringoptionalA property path indicating a single object to be exported (for export) or the location at which to import (for import). reducedDetailChangeHistoryBooleanoptionalSet to 0 or false to prevent importing a large project that has change tracking enabled from automatically reducing the level of detail that it tracks for the change history of the import -- this will make the import operation take longer and put more load on the database, but will allow the Change History feature to still show the full detail of entities owned by the imported project that were created by the import operation. relocatableBooleanoptionalTrue to emit relocatable content (no IDs, ACLs, or times). revisionNumberIntegeroptionalRevision number. safeModeStringoptionalDetermines the mode to use during a full export. If set to none , the default behavior applies. If set to restart , then the server will be stopped during the full export and restarted on completion. If set to shutdown , then the server will be stopped during the full export and shutdown on completion.Possible values: "none" , "restart" , "shutdown" withAclsBooleanoptionalTrue to emit ACLs in relocatable exports. withNotifiersBooleanoptionalTrue to emit emailNotifiers in relocatable exports. withVersionNumbersBooleanoptionalTrue to emit version numbers (ignored on import). |
Usage
Perl
$cmdr->export( "test-fileName" # fileName # optionals );
ectool
ectool export \ "test-fileName" `# fileName` \ # optionals