Filestore Migration to S3
Migrate Artifactory filestore to S3 manually or automatically using eventual directory symlinks for validation.
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, 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 perform the filestore migration automatically. Create the following links in $JFROG_HOME/artifactory/var/data/artifactory/eventual/ (create the folder if it does not exist — it is created automatically when the eventual binary provider is applied after restarting Artifactory 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
