I often hear that having an SVN repository doesn't cancel need for backups.
How is such backup done? I mean the repository will inflate over time, won't it? So do I back it up as a whole every time or what do I do?
What's the easiest way to do such backups?
By default, the Subversion dump stream contains a single revision (the first revision in the requested revision range) in which every file and directory in the repository in that revision is presented as though that whole tree was added at once, followed by other revisions (the remainder of the revisions in the ...
You could use svnadmin dump
. For example, to create a compressed backup file in Linux run:
svnadmin dump -q /path/to/repo | bzip2 -9 > repo_backup.bz2
To restore a backup use svnadmin load
:
svnadmin create /path/to/newrepo bzip2 -cd repo_backup.bz2 | svnadmin load /path/to/newrepo
See also Repository data migration using svnadmin in the SVN Book.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With