Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change storage directory in Artifactory

Tags:

artifactory

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.

like image 240
usr-local-ΕΨΗΕΛΩΝ Avatar asked Dec 05 '14 14:12

usr-local-ΕΨΗΕΛΩΝ


1 Answers

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>
like image 58
spuder Avatar answered Sep 22 '22 14:09

spuder