SVN Nightly Backup

I would like to know how I would back up one SVN response then send it to and email address? Similar to CVS Nightly Backup. Is this a command inside SNV or do I have to create a shell script?

4 Replies

I dump mine to a dated file, but this should work to mail it:

svnadmin dump /var/lib/svn -q | mailx -s "SVN Dump for `date +%Y%m%d`" foo@bar.com

Assuming your repository is in /var/lib/svn.

Hey guys,

Curious what OS you are using for SVN. I set mine up on CentOS, imported a dumped repo but trying to check it out results in segfaults each time.

I was about to post a new topic but was curious :)

Ubuntu 5.10 here (just upgraded from 5.04), although it is on a server in my house and not on my linode. No problems with it.

@dmuench:

I dump mine to a dated file, but this should work to mail it:

svnadmin dump /var/lib/svn -q | mailx -s "SVN Dump for `date +%Y%m%d`" foo@bar.com

Assuming your repository is in /var/lib/svn.

How does that deal with binary data?

Either encode it or send it as a attachment (and hence encoded) perhaps?

I suggest using gpg -ar you -e :), but then I really like gpg.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct