ARTIFACTORY: How to disable default daily and weekly backups prior to Artifactory startup

ARTIFACTORY: How to disable default daily and weekly backups prior to Artifactory startup

AuthorFullName__c
Gabriel Noghryan
articleNumber
000005878
ft:sourceType
Salesforce
FirstPublishedDate
2023-10-03T21:12:15Z
lastModifiedDate
2023-09-28
VersionNumber
2

Disabling a default configured backup in an Artifactory instance is not a common practice, as backups are essential for data protection and disaster recovery. However, there might be some specific use cases or advantages for temporarily disabling or modifying backup configurations.

To address this configuration change, you can utilize the "Apply Artifactory YAML Configuration Changes" REST API. To disable the default daily and weekly backup jobs, you'll need to update the corresponding values for "backup-daily" and "backup-weekly" to "false" in YAML format, like this:

curl  q -u<username>:<password> -X PATCH "http://<ARTIFACTORY_URL>/artifactory/api/system/configuration" -H "Content-Type: application/yaml" -T configuration.yml


configuration.yml:

backups:
  backup-daily:
    enabled: false
  backup-weekly:
    enabled: false

Remember that disabling backups should be a temporary measure with a clear plan for re-enabling them as soon as the specific situation or need has passed. Continuous, reliable backups are essential for data recovery and ensuring the availability and integrity of your artifacts in Artifactory. For further information and additional backup options, we strongly recommend following our Backups & DR Best practices.