Web files backup

mkdir /home/mento/www
#!/bin/bash

TODAY=`date "+%u-%a"`
BACKUP="/home/mento/www"
PDUMPFS="/usr/bin/pdumpfs --quiet --exclude=/tmp/ --log-file=$BACKUP/log_$TODAY"
BASENAME="/usr/bin/basename"

DIRS="/var/www/hostname"

ulimit -e 5

for d in $DIRS
do
    DIR=`$BASENAME $d`
    /bin/echo $DIR
    $PDUMPFS $d "$BACKUP/$DIR"
done

/bin/sync

exit 0

http://0xcc.net/pdumpfs/index.html.en

 
Logged in as: Oszkár Kmetti
backup/webbackup.txt · Last modified: 2008.08.04 23:52 by oszi
 
Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki