exportRepository exports the contents of one or more standard repositories to a .jar data file. You typically use this tool together with importRepository, which imports the exported data into a standard or VersionRepository.

Note: When running exportRepository on a third-party application server, you must configure the server to use an ATG data source and transaction manager, not your native application server’s data source and transaction manager.


You run exportRepository from <ATG10dir>/home/bin as follows:

exportRepository [–m startup-modules] [-s server-name]
output-file { -all | -r repository-list } [-batchSize size]

Command-Line Help

To obtain command-line help on syntax usage, type:

exportRepository -help

Required Arguments



-file output-file

Specifies the target output file for the exported content. The file path can be absolute or relative to the current directory.


Specifies to export the contents of all repositories registered in the repository registry service, located in Nucleus at /atg/registry/ContentRepositories.

You must specify this option or -r.

-r repository-list

Specifies the absolute Nucleus component path of one or more source repositories, where repository-list is a list of comma-delimited repositories.

You must specify this option or -all.

For example:

exportRepository –m Catalog –file /users/joe/CatalogExport.jar –r /myApp/Catalog

Optional Arguments



-m startup-module
[-m startup-module]...

Lists a module to start for the export process, which contains the source repositories of the data to export. Supply multiple –m options in order to start more than one module.

This argument must precede all others, including -file.

-s server-name

The ATG instance on which to run this script. Use this argument when you have multiple servers running on a machine.

If specified, this argument must precede all others except -m.

-batchSize size

The number of items to query at one time. The larger the specified number, the faster the export but the greater the amount of memory required. The default is 1000.

Specify -1 to export all items in a single batch.

Note: If using Oracle, avoid setting -batchSize to -1 unless the total number of items to export is less than 1000. Do not set–batchSize to an integer greater than 999.

Print Arguments

See Print Arguments under importRepository.