2 # daily backup of a serialdump to rcs-style ,v files with full history
4 BACKUPDIR=/var/www/wikidb/pgsrc
6 #chgrp -R apache $backupdir
7 chmod -R ug+rw $BACKUPDIR
9 for p in $BACKUPDIR/*; do
10 # Set the file-date as saved by phpwiki
11 date=`perl -ne'if ($.==1){s/Date: //; s/ \+0100//; print}' "$p"`
15 # check in the new version
16 ci -u -m"." "$p" > /dev/null
18 # create new rcs revision
19 rcs -i -U -t-"new wikipage" "$p" 2> /dev/null