svn repository migration


Smells Like Teen Spirit

Dump.

old@old:~$ \
> svnadmin dump --incremental --quiet {path/to/old/repository} > \
> {path/to/old/dump/file}

Copy.

old@old:~$ \
> scp {path/to/old/dump/file} new@new:{path/to/new/dump/file}

Load.

new@new:~$ \
> svnadmin load --quiet {path/to/new/repository} < \
> {path/to/new/dump/file}

With or Without You

Dump and Copy.

old@old:~$ \
> svnadmin dump --incremental --quiet {path/to/old/repository} | \
> ssh new@new "cat > {path/to/new/dump/file}"

Load.

new@new:~$ \
> svnadmin load --quiet {path/to/new/repository} < \
> {path/to/new/dump/file}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s