summaryrefslogtreecommitdiff
blob: 3f26b15aa44bb21d27dafdd1416853a1bb696c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

BIN_DUMP="/usr/sbin/SVN-dump"

for REPOSITORY in /var/svn/repos/*
  do
    $BIN_DUMP $REPOSITORY /var/svn/dump/`basename $REPOSITORY`.dump full
done

for FILE in /var/svn/dump/*.bz2 
  do
  [ -f $FILE.gpg ] && rm $FILE.gpg 
  [ -f $FILE ] && /usr/bin/gpg --batch --no-tty --default-recipient post@gunnarwrobel.de --encrypt-files $FILE && rm $FILE
done

chown -R apache:apache /var/svn/dump
chmod 750  /var/svn/dump
chmod 660  /var/svn/dump/*