简体   繁体   中英

Change storage directory in 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.

If you have artifactory 4.6 or greater, you can create a $ARTIFACTORY_HOME//binarystore.xml config file. eg /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>

The checksum based storage is one of the biggest advantages of Artifactory. It gives much better performace, deduplication and allows uploads optimization, replication optimization, free copy and move artifacts. The blob storage is by far the right way to store blobs (binaries).

Location of the artifacts storage can be changed according your needs by mapping the storage as $ARTIFACTORY_HOME/data .

For disaster recovery we recommend to setup active/passive synchronization or active/active cluster . Also, the Artifactory backup dumps the files in the standard directory structure format and the location of the backup can be configured.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM