diff options
Diffstat (limited to 'z-distfiles/scripts-gw/SVN-monthly')
-rwxr-xr-x | z-distfiles/scripts-gw/SVN-monthly | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/z-distfiles/scripts-gw/SVN-monthly b/z-distfiles/scripts-gw/SVN-monthly new file mode 100755 index 0000000..3f26b15 --- /dev/null +++ b/z-distfiles/scripts-gw/SVN-monthly @@ -0,0 +1,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/* + |