Remove corntab.txt and svnbackup.sh

This commit is contained in:
Matthew McKinnon 2015-08-23 16:49:06 +10:00
parent f9610dc518
commit 900a9ccdfb
2 changed files with 0 additions and 34 deletions

View File

@ -1,3 +0,0 @@
45 00 * * * moe /opt/scripts/nasbackup.sh
00 09 * * * root /opt/scripts/check_updates.sh

View File

@ -1,31 +0,0 @@
#!/bin/bash
bakdate=$(date +%Y%m%d)
bakdest="/BACKUP/svn/"
svnrepos="/var/lib/svn"
tracrepos="/var/lib/trac"
rotate_backups() {
find $backdest -type f -mtime +7 -exec rm -frv {} \;
}
rotate_backups
cd $svnrepos
if [ -d "$bakdest" ] && [ -w "$bakdest" ] ; then
for repo in *; do
mkdir /tmp/$repo
svnadmin dump $repo > /tmp/$repo/$repo-$bakdate.svn.dump
trac-admin $tracrepos/$repo hotcopy /tmp/$repo/$repo-trac-$bakdate
cd /tmp/
tar -zcf $bakdest/$repo-$bakdate.tar.gz $repo/*
rm -fr /tmp/$repo
cd $svnrepos
done
fi