I need to create a backup script (both in batch and bash) which I want to make an automatic svndump which creates the filename dump <repository_name>_<repository_rev>.zip.
Example:
My repository name is MySplice and it’s on rev. 234 (which I don’t know and I don’t wanna check inside repository path), so I want to run a script backup.bat or backup.sh and it creates the file mysplice_r234.zip, which is the dump of my repository.
So, how can I do it? Thanks.
On Linux you could do it this way:
Please note: I think, that a zip file is not a good fit for a repository, because the dump will always be exectly one file and not a bunch of files. So please consider using
gziporbzip2instead.