Backup & Restore Procedure for a single repository
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Usage
Use this KB when you feel the need to restore a single repository back to Fisheye/Crucible (e.g: When you accidently removed the repository cache's folder or triggered a full-reindex by mistake).
Backup
Backup your <FISHEYE_INST>/var/cache/<REPO_NAME> folder
Open your <FISHEYE_INST>/config.xml file and copy the repo from it:
1
2
3
4
5
6
7
8
9
<repository name="<REPO_NAME>" description="Repo Customer" store-diff="true" enabled="true">
<svn url="https://ECRNT-71/svn/repo1" path="" follow-base="false" initial-import="none"><auth username="<USER>" password="<USER_PASS>"/>
<symbolic auto-rules="true"/></svn>
<linker/><allow><exclude pattern="src/db/test/" casesensitive="false"/></allow>
<security use-defaults="true" allow-anon="false" allow-logged-in="false" allow-anon-write="false" allow-logged-in-write="false">
<required-groups/>
<required-write-groups/>
</security>
</repository>
Restore
Restore the repository's backup folder to your <FISHEYE_INST>/var/cache/ folder
Paste the repository config that you copied before into your <FISHEYE_INST>/config.xml file
PS: Make sure to paste it after the </repository-defaults> tag
Was this helpful?