Migrate Your Filestore to S3
There are two ways to migrate your filestore over to your S3 provider. To migrate your filestore manually, you need to execute the following steps:
There are two ways to migrate your filestore over to your S3 provider.
- Manually (recommended)
- Automatically
Manual Filestore Migration (Recommended)
To migrate your filestore manually, you need to execute the following steps:
- Stop Artifactory.
- Copy the
$JFROG_HOME/artifactory/var/data/artifactory/filestoredirectory to your S3 object storage to the bucket name and path specified when you configured Artifactory to use S3. - Configure Artifactory to use S3 in the
binarystore.xmlfile in the$JFROG_HOME/artifactory/var/etc/artifactoryfolder. - Start Artifactory.
Automatic Filestore Migration
Artifactory can be configured to perform the filestore migration automatically. To do so, you need to create the following links in $JFROG_HOME/artifactory/var/data/artifactory/eventual/(create it if the eventual folder does not exist - it is created automatically when the eventual binary provider is applied via an Artifactory restart with an updated binarystore.xml):
- A link with the name
_addthat points to the$JFROG_HOME/artifactory/var/data/artifactory/filestoredirectory - A link with the name _pre that points to the
$JFROG_HOME/artifactory/var/data/artifactory/filestore/_predirectory
With this setting, as soon as Artifactory starts up, it will automatically move your complete filestore over to your S3 provider. Artifactory validates each file uploaded to S3 and removes the file from the NFS if the transfer is successful.
Your current filestore will be deleted
The process of moving your filestore to your S3 provider will delete your current filestore. We strongly recommend you do a complete system backup before doing this migration.
Tip
Once the migration is complete, you may delete the
_prelink and the$JFROG_HOME/artifactory/var/data/artifactory/_predirectory
Updated 5 days ago
