Import dumped SVN repo into VisualSVN Server

后端 未结 4 595
小蘑菇
小蘑菇 2020-12-16 22:03

I have dumped my repository on my old computer to a file with the command. svnadmin dump C:\\myrepo/ > mydumpfile

Now I decided to use VisualSVN Serv

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 22:36

    If you ask this question in context of repository backups, consider this answer, please: https://stackoverflow.com/a/12444944/761095.

    When you want to import an existing repository to VisualSVN Server, read the article KB10: How can I import my existing repository into newly installed VisualSVN Server?. However, when you migrating an existing VisualSVN Server installation to a new server computer, read the article KB166: Migrating VisualSVN Server to another computer.

    You have two options to import an existing repository: use the Import Existing Repository Wizard command in the VisualSVN Server Manager console or use the Import-SvnRepository PowerShell cmdlet.

    Use VisualSVN Server Manager to import the repository dump

    Follow these steps to import the dump file via VisualSVN Server Manager:

    1. Start the VisualSVN Server Manager console.
    2. Right-click Repositories and click Import Existing Repository.
    3. Click Load repository from a dump file and click Next.
    4. Enter the path to the dump file or click Browse to select it. Click Next.
    5. Enter the name of the new repository and click Next.
    6. Select the repository permissions and click Import. Wait for the import process to finish.
    7. When the import process is complete, click Finish.

    Use PowerShell to import the repository dump

    Follow these steps to import the dump file via PowerShell:

    1. Start the PowerShell console.
    2. Execute the following command and wait for the import process to finish:

      Import-SvnRepository PATH-TO-DUMP-FILE -DestinationName NEW-REPO-NAME
      

提交回复
热议问题