Import dumped SVN repo into VisualSVN Server

后端 未结 4 562
小蘑菇
小蘑菇 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:23

    Figured it out now that Andrew Clark pointed out there is a "All Tasks"

    Repository -> All Tasks -> Open Command Prompt
    
    svnadmin create repository-name
    svnadmin load repository-name < repository-name.dmp
    
    0 讨论(0)
  • 2020-12-16 22:24

    try copying your repository to like C:\Repositories

    or use Repositories -> All Tasks -> Import Existing Repository

    0 讨论(0)
  • 2020-12-16 22:36

    Importing from portable dump file implemented in VisualSVN Server 3.2:

    1. Start the VisualSVN Server Manager console.
    2. Select Import Existing Repository command in the context menu for the Repositories node.
    3. Select Load repository from dump file, click Next.
    4. Enter path to dump file and click Next.

    Do not forget to configure SVN permissions for the imported repository.

    Screen shot

    0 讨论(0)
  • 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
      

    0 讨论(0)
提交回复
热议问题