hcoop-backup: Make deletion of old backups work.
[clinton/scripts.git] / hcoop-backup-wrapper
1 #!/bin/bash
2
3 exec >& /var/log/backup-to-megacz.com-wrapper-log
4 touch /xyz/zys # generate an error message
5
6 fs checks -cell megacz.com
7 fs checkvol
8 rm -f /var/log/backup-to-megacz.com-log
9 echo "groups before k5start" > /var/log/backup-to-megacz.com-log
10 groups >> /var/log/backup-to-megacz.com-log
11 export KINIT_PROG='aklog -c hcoop.net;aklog -c megacz.com'
12 exec k5start -f /etc/keytabs/hcoop hcoop@HCOOP.NET -t \
13 /afs/hcoop.net/common/etc/scripts/hcoop-backup