11.07.2015 Views

Version Control with Subversion - Login

Version Control with Subversion - Login

Version Control with Subversion - Login

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Subversion</strong> Complete ReferenceNamesvnadmin dump — Dump the contents of the filesystem to stdout.Synopsissvnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas]DescriptionOptionsDump the contents of the filesystem to stdout in a “dump file” portable format, sendingfeedback to stderr. Dump revisions LOWER rev through UPPER rev. If no revisions aregiven, dump all revision trees. If only LOWER is given, dump that one revision tree. See thesection called “Migrating Repository Data Elsewhere” for a practical use.By default, the <strong>Subversion</strong> dump stream contains a single revision (the first revision in therequested revision range) in which every file and directory in the repository in that revisionis presented as though that whole tree was added at once, followed by other revisions (theremainder of the revisions in the requested range), which contain only the files and directoriesthat were modified in those revisions. For a modified file, the complete full-text representationof its contents, as well as all of its properties, are presented in the dump file; fora directory, all of its properties are presented.Two useful options modify the dump file generator's behavior. The first is the --incremental option, which simply causes that first revision in the dump stream to containonly the files and directories modified in that revision, instead of being presented asthe addition of a new tree, and in exactly the same way that every other revision in thedump file is presented. This is useful for generating a relatively small dump file to beloaded into another repository that already has the files and directories that exist in the originalrepository.The second useful option is --deltas. This option causes svnadmin dump to, instead ofemitting full-text representations of file contents and property lists, emit only deltas of thoseitems against their previous versions. This reduces (in some cases, drastically) the size ofthe dump file that svnadmin dump creates. There are, however, disadvantages to usingthis option—deltified dump files are more CPU-intensive to create, cannot be operated onby svndumpfilter, and tend not to compress as well as their nondeltified counterpartswhen using third-party tools such as gzip and bzip2.--deltas--incremental--quiet (-q)--revision (-r) REVExamplesDump your whole repository:$ svnadmin dump /var/svn/repos > full.dump* Dumped revision 0.* Dumped revision 1.* Dumped revision 2.…Incrementally dump a single transaction from your repository:299

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!