blob: 2ab0df1e62ee3c4cd3696c048ece1d82917e5ee9 (
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 incremental
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/*
|