Name

svndumpfilter

Synopsis

svndumpfilter subcommand [options] paths ...

Filter out files from a repository dump for use in later repository restoration (see svnadmin dump and svnadmin load).

Subcommands

exclude

Exclude from the dump the files and directories named by paths. Everything else is left in the dump.

help, h, ?

Print a help message and exit.

include

Include in the dump only the files and directories named by paths. Everything else is excluded.

Options

--drop-empty-revs

Remove empty revisions. Such a revision can be created when the original revision contained paths that were filtered out. This option removes such empty revisions from the dump.

--preserve-revprops

If empty revisions are being kept, preserve their revision properties (such as log message, author, date, and so on). Otherwise, empty revisions contain only the original datestamp and a generated log message that the revision was dropped.

--renumber-revs

If empty revisions are being dropped, subsequent revisions are renumbered, so that all revision numbers are contiguous.

Example

Dump the repository, then separate out its two components:

    $ svnadmin dump /path/to/repos > dumpfile
    * Dumped revision 0.
    * Dumped revision 1.
    * Dumped revision 2.
    ...

    $ svndumpfilter include \
    > client < dumpfile > client-dumpfile
    $ svndumpfilter include \
    >server < dumpfile > server-dumpfile

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.