I have just installed Artifactory and I need to set up and running a company-wide Ivy repository.
For disaster-recovery purposes, I need Artifactory to store data on a RAID-1 file system mounted at /srv
(where MySQL datafiles are stored also). I would not prefer using blob storage, so how can I tell Artifactory to store all of its data in a directory different than the standard?
System info: I run SLES 11 and I have installed Artifactory from RPM.
If you have artifactory 4.6 or greater, you can create a $ARTIFACTORY_HOME//binarystore.xml
config file. e.g /var/opt/jfrog/artifactory/etc/binarystore.xml
The following config would put the artifacts in the /data
directory
<config version="v1">
<chain template="file-system"> <!-- Use the "file-system" template -->
</chain>
<provider id="file-system" type="file-system"> <!-- Modify the "file-system" binary provider -->
<fileStoreDir>/data/binaries</fileStoreDir> <!-- Override the <fileStoreDir> attribute -->
</provider>
</config>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With