How to migrate Artifactory from one environment to another? [Video]

Pranav Hegde
2021-02-02 09:41

How-to-migrate-Artifactory-from-one-environment-to-another-Video

 

Video Transcription

Hello everyone, I’m from JFrog support. In this video, I will demonstrate how to migrate the Artifactory from one infrastructure to another. The main agenda of the video will be, I will show a quick demo on how to migrate the Artifactory data from GCP to AWS using the system import and export method. The pre-requisite will be, I have installed Artifactory in a GCP machine and another Artifactory in AWS machine. Now I will show a quick demo with a live scenario.

This is the Artifactory, which is running in a GCP machine. I have created a local repository, maven local repository called lib-release local and uploaded a sample form file to it. Now under administration tab, under identity and access, under users I’ve created multiple test users in order to test this use case. Now click on Artifactory option under services and under import and export click on system, here the export path on the server, I would explain the options available here when you perform the system export here.

Here, the export path on the server means, here we need to provide the target directory for the exported files. You may browse the file to your system to select this directory, and when you check the option exclude content here. When it is set, the repository binaries are excluded from the export and here when you check the option exclude metadata, which means the repository metadata are excluded from the export. And when you check the option create .m2 compatibility export, which means the metadata and the checksum file are part of the export.

And when you the check the option create zip archive, it means which will create the zip archive option here. And when you click the option output verbose log, it lowers the log level to debug and redirects the output from standard log to the import-export log. Now we’ll perform a live scenario and we’ll export the Artifactory data from this Artifactory server to the GCP machine. I have created a export data directory under TMP folder, under TMP directory, select the option which I have created export data here. Now select, once the path is updated here, select the option export. I’m not checking any of this option here, so the entered Artifactory data will be exported to the file directory which I mentioned here.

Now, when I click on the option export it successfully exported the system to /tmp/exportdata directory. In order to save the time, I have copied the exported data from GCP machine to the AWS machine, and I’ve saved it under /tmp/exportdata directory. Now go to the Artifactory, which is running in an AWS machine under services click on Artifactory, under import and export click on system option. Here on the import bottom path on the server, here we need to queue the target file store location, where we have copied the exported data from the GCP machine.

Click on browse. I have saved it under /tmp directory, under exported data, click on the file, which have been copied from the GCP machine. Now, once the file path is completely updated here, click on import, make sure that you are not checked any of this option so that enter data will be imported to this Artifactory server. Then click on import, it successfully imported the system from /tmp/exportdata directory. You can verify it by navigating to the identity and access, under users we could see that all the test users have been successfully imported here, go to the artifacts page and in the artifacts page you could see all the repositories are imported here and under lib-release local repository, we could see that the sample form file have been imported here.

Thank you for watching this video. Please feel free to post if you have any questions or feedback in the comments section. Once again, thank you for your time. Have a great day.