| Path type | Windows | *nix |
|---|---|---|
| the subversion repositories are located | d:\svnrepo | /home/svn |
| the backup root folder | d:\backups | /home/backups |
| the subversion CLI | (in the path) | (in the path) |
The first script performs not only a hotcopy backup of a repository (provided as the first parameter), but also first erases whatever backup might have been there (with a special provision for the very first time around) and creates a "dump" of the repository's contents, along with a final clean-up to save space. The reason we are keeping a dump over the contents of the db folder is that you can then "restore" your backup with a different version of Subversion. (trust me, I've lived through a catastrophic failure of a Subversion server and the dump format stays the same across versions while whatever's in the db folder doesn't necessarily)
| Windows | *nix |
|---|---|
BackupAndDump.bat | backupanddump |
The second script iterates through all the repositories in a root folder and calls the first script (which, BTW, is located in the backup root folder) for each one.
| Windows | *nix |
|---|---|
SubversionBackup.bat | svnbackup |
Well, that's enough for tonight. I'm sure all you Linux gurus out there are pointing and laughing at my noob-skills.