different backups for primary and secondary
[scripts/scripts.git] / update_hdwlinux_org.sh
1 #!/bin/bash
2
3 oldpwd=$PWD
4 hdwdir=/var/www/hdwlinux.org/download/hdw-linux/hdw-linux-cvs
5
6 echo -en "hdw-linux.cvs update ..." >> /var/log/messages
7
8 cd $hdwdir/scripts
9 cvs up -d
10 cd ..
11 rm -f $hdwdir/snapshot/hdw-linux-cvs.tar*
12 tar cf $hdwdir/snapshot/hdw-linux-cvs.tar hdw-linux-cvs
13 bzip2 $hdwdir/snapshot/hdw-linux-cvs.tar
14 cd $oldpwd
15
16 echo -en "done\n" >> /var/log/messages
17