Import dumped SVN repo into VisualSVN Server
Asked Answered
A

4

8

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 Server on my new computer as opposed to just a baseline subversion. How do I import my repository into VisualSVN Server?

Aiguille answered 5/3, 2009 at 17:19 Comment(0)
A
17

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
Aiguille answered 5/3, 2009 at 17:33 Comment(2)
repository-name argument in the form of: "C:/myrepo/" You can also use the "--parent-dir" argument to specify a directory to import the dump file into.Winona
This will not work with the versions 2.6 and later! See https://mcmap.net/q/1322837/-svnadmin-load-is-not-workingCollectanea
A
4

try copying your repository to like C:\Repositories

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

Autocephalous answered 5/3, 2009 at 17:23 Comment(3)
Hmm the problem is it is not a repository folder structure right now, it is just the dump file.Aiguille
try to just copy the old one over rather than dumpingAutocephalous
Did you ever find an answerJoellenjoelly
O
1

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

Ossification answered 12/12, 2014 at 15:44 Comment(0)
C
0

If you ask this question in context of repository backups, consider this answer, please: https://mcmap.net/q/1133477/-visualsvn-server-repository-backup-restore.

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. enter image description here
  7. When the import process is complete, click Finish. enter image description here

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
    

    enter image description here

Collectanea answered 27/3, 2020 at 19:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.