Repository dump is a file that contains all repository revisions in a portable format. The repository dump file format is independent of the repository backend data store type or its version. It can be used for archiving repositories that are no longer in use, importing repositories to another location or migrating repositories to a newer backend type (e.g., migrating from BDB to FSFS).
There are several ways to export a repository dump file:
- Export repository dump using VisualSVN Server Manager (VisualSVN Server 4.0 and later).
- Export repository dump using VisualSVN Server PowerShell cmdlet (VisualSVN Server 4.0 and later).
- Export repository dump using svnadmin.
Export repository dump using VisualSVN Server Manager
VisualSVN Server 4.0 and later versions allow several export options, including exporting repositories to dump or GZIP-compressed dump.
Follow these steps to export a repository dump in VisualSVN Server:
- Start the VisualSVN Server Manager console.
- Expand the Repositories node.
- Right-click the repository you want to export and click All Tasks | Export Repository.
- Select Export repository dump and click Next.
- Adjust the export options if needed and click Export.
- Click Finish after the export is complete.
The repository dump will become available in the specified destination folder.
Export repository dump using VisualSVN Server PowerShell cmdlet
VisualSVN Server 4.0 and later versions provide the Export-SvnRepository PowerShell cmdlet to export one or multiple repositories at once. The cmdlet allows several export options, including exporting repositories to dump or GZIP-compressed dump.
For example, perform the following PowerShell command to export the contents of the MyRepo repository to a dump file:
Export-SvnRepository MyRepo -DestinationLocation C:\ -Format Dump
The repository dump will become available in the specified destination location.
Export repository dump using svnadmin
The svnadmin tool that comes with Subversion provides the svnadmin dump subcommand for generating a repository dump.
For example, run the following command in Windows Command Prompt (cmd.exe) or PowerShell:
The repository dump will become available in the specified destination location.
See also
KB10: Importing Repositories into VisualSVN Server
KB80: Repository types available in VisualSVN Server