Skip to end of metadata
Go to start of metadata
Table of Contents

Overview

Artifactory supports import and export of data at two levels:

  • System level
  • Repository level.

At system level, Artifactory can export and import the whole Artifactory server - configuration, security information, stored data and metadata. The format used is identical to the System Backup format. This is useful for manually running backups and for migrating and restoring a complete Artifactory instance (this is an alternative for using database level backup restore).

At repository level, Artifactory can export and import repository stored data and metadata. This is useful for moving store data, including its metadata between repositories and for batch population of a repository.

System Import and Export

System import and export can be accessed from the Admin tab and then Import & Export -> System

 

Field NameDescription
Target Export DirBrowse to select the directory to be exported
Exclude ContentExclude repository binaries from the export
Exclude MetadataCheck to exclude repositories metadata from the export.
(Maven 2 metadata is unaffected by this setting)
Exclude BuildsExclude all builds from the export
Create .m2 Compatible ExportInclude Maven 2 repository metadata and checksum files as part of the export
Create a Zip Archive (Slow and CPU Intensive!)Creates a Zip Archive
Output Verbose LogLowers the log level to debug and redirects the output from the standard log to the import-export log.
NOTE! that you can monitor the log in the 'System Logs' page.

The source/target of the import/export operations are folders (Zip archives are not recommended) on the Artifactory server itself.

You can use the built-in server-side browsing inside Artifactory to select server-side source/target folders:

Importing or exporting a large amount of data may take some time to complete. It is not necessary to watch the page and wait for the operation to finish, you can view the logs to determine when import/export completed.
(Go to the Admin tab and then Advanced -> System Logs).

Repositories Import and Export

System import and export can be accessed from the Admin tab and then Import & Export -> Repositories

You can either export and import to and from server-side folders (browsable though Artifactory - see above), or import a repository by zipping it and uploading it to Artifactory.

You can also import directly into caches and can take your local Maven repository and upload it into Artifactory to make all your already-locally-stored artifacts available on the server. You can choose whether to import multiple repositories ('All Repositories') or a single repository.

Import Layout

The expected layout of an imported repository is in the format of a Maven 2 repository layout.

When importing a single repository, the file structure within the folder your selection should be similar to:

When importing all repositories, the file structure within the folder your selection should be similar to:

When importing all repositories, ensure the names of the directories representing the repositories in the archive match the names of the target repositories in Artifactory.

  • No labels