How to Restore a Deleted Repository
In Artifactory, a repository may be deleted, intentionally or by mistake. In case you want to restore the deleted repository, there are two ways to do that.
- From the Trash Can
- Using the Repository Import feature
Taking these in order, to restore a repository from the Trash Can, first create a new repository of the same type. Then head over to the Artifacts view, scroll down to find the Trash can. Mark the desired repository, right click >> Restore.
In the restore window, select the newly created Repository and click Restore.
The second method to restore the deleted repository is with the Repository Import feature.
In order to do that, you will need to create a new repository and import the deleted repository directory from the Repository Import page.
Navigate to the Administration tab >> Artifactory >> Import & Export >> Repositories. Scroll down to Import Repository from Path, in the Target Repository Path, select the newly created repository and browse to locate the daily backup location (usually found in
$JFROG_HOME/artifactory/backup/artifactory/backup_daily/current/repositories), select the desired repository and click on import.