ARTIFACTORY: Artifactory Backup: Frequently Asked Questions

Products
Frog_Artifactory
Content Type
Administration_Platform
AuthorFullName__c
Prakriti Vishwakarma
articleNumber
000006486
FirstPublishedDate
2025-06-30T07:14:27Z
lastModifiedDate
2025-06-29

ARTIFACTORY: Artifactory Backup: Frequently Asked Questions

This document addresses common questions regarding Artifactory backups.

1. How are backup files stored in Artifactory, especially with daily backups?

When periodic backups are configured and triggered via a cron job, Artifactory stores the backup content in a standard file system format at the specified path. For incremental backups, only delta data is copied, making the operation fast. The backup directory will be named `current`.

The backup directory typically contains the following files:
  • `artifactory.config.xml`: Contains all Artifactory configuration data.
  • `artifactory.properties`: Contains Artifactory version information.
  • `artifactory.repository.config.json`: Contains repository configurations.
  • `etc`: Contains other crucial configuration information, such as configuration backups and
  • `binarystore.xml` configuration.
  • `licenses`: Contains your Artifactory licenses.
  • `repositories`: Contains metadata for all your repositories.

2. What data is included in the backup, in addition to artifacts?


Artifactory backups capture configuration files, license details, and repository configuration and metadata. It's important to note that actual physical binaries are stored in the Filestore, and the backup only captures the repository's metadata when the exclude content option is selected while taking backup.


3. How does the backup process work, and how can data be restored from a backup?


To restore Artifactory data from a backup, you need to perform a system import. More information on how to do a system import can be found in the JFrog Wiki: System Import and Export.


4. What is the process for cleaning up an existing backup and starting a fresh one?


While you can directly delete backups, it is highly recommended to maintain a copy elsewhere before doing so. To initiate a fresh backup, simply trigger the backup process again. This will create a new backup folder at the specified path. 


5. Where are the actual data and artifacts stored in the storage?


Actual binary data is stored in the Filestore. You can refer to the `binarystore.xml` file to identify the storage provider used with Artifactory. Metadata (artifacts) is stored in the Database.-----Backup Behavior in Pods (PVCs)


Q: How is data backed up across both pod PVCs?


When a default server path is configured for backups, the backup will be stored at this path regardless of the node where the backup is triggered. For example, if Node 1 has PVC1 and Node 2 has PVC2:
  • If the backup is triggered on Node 1, the data will be stored in Node 1's PVC at `$JFROG_HOME/artifactory/backup/`.
  • Similarly, if triggered on Node 2, the backup will be stored in Node 2's PVC at its default server backup path.
This method may not be ideal for larger backups. We generally recommend using a dedicated PVC for backups and defining the storage during backup configuration. 

Example: https://jfrog.com/help/r/artifactory-how-to-attach-nfs-mount-point-to-the-artifactory-helm-deployment-to-configure-filestore-and-backup-directory


Q: Why is there a difference in volume size between the pod PVCs when artifacts and source are the same?


The backup size is dependent on where the backup is triggered. If the backup is initiated on Node 1, the backup data will be stored in Node 1's PVC, leading to a larger backup folder size compared to another node's backup folder. For a detailed explanation of why the backup folder size can be larger than the filestore size, please refer to the JFrog Wiki: Why the size of your backup or system export is bigger than the size of your filestore.


Q: In what order does the backup occur on these pods?


The backup order depends on the configured Cron Job. When the Cron Job triggers, Artifactory will generate the backup and store it in the respective PVC.