When you delete a repository from the Nexus UI, nexus will remove the repository from any groups it belongs too and move the repository contents to it's trash folder. Sometimes you will want to restore this repository back into service.
To restore a deleted repository with id of 'releases':
1. mv sonatype-work/nexus/trash/releases sonatype-work/storage so that you end up with sonatype-work/storage/releases
2. Recreate the repository with the same repository id 'releases' using the repositories tab user interface.
3. Add the repository to any groups that it was in before.
The act of creating the repository in the UI will force a reindex of the previous repository storage contents.
[url]https://support.sonatype.com/entries/25347746-How-to-restore-a-deleted-repository-from-trash-[/url]
To restore a deleted repository with id of 'releases':
1. mv sonatype-work/nexus/trash/releases sonatype-work/storage so that you end up with sonatype-work/storage/releases
2. Recreate the repository with the same repository id 'releases' using the repositories tab user interface.
3. Add the repository to any groups that it was in before.
The act of creating the repository in the UI will force a reindex of the previous repository storage contents.
[url]https://support.sonatype.com/entries/25347746-How-to-restore-a-deleted-repository-from-trash-[/url]
本文介绍如何从Nexus的回收站中恢复已删除的仓库。通过移动仓库文件夹、重新创建仓库并重新添加到组中,可以实现仓库内容的完全恢复。
3291

被折叠的 条评论
为什么被折叠?



