From: Carl N Baldwin Date: Thu, 27 Oct 2005 18:44:49 +0000 (-0600) Subject: Merge branch 'master' of home:dvl/backup X-Git-Tag: release-0.4~53 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%24link?a=commitdiff_plain;h=dd824ff649e2701137a975e4c6be067a7a972a60;hp=c56f7393d14263e06a1a4425fc5a855679b68831;p=backups%2F.git Merge branch 'master' of home:dvl/backup --- diff --git a/scripts/drive.sh b/scripts/drive.sh index 7d0420d..367016c 100755 --- a/scripts/drive.sh +++ b/scripts/drive.sh @@ -8,6 +8,7 @@ export PATH=$scriptsdir:$PATH today=$(date +%Y%m%d%H%M%S) mailto='carl@ecbaldwin.net' datadir="/var/lib/backups" +backupdirs="/home /etc /var/backups /var/lib/debfoster /var/lib/mailman /var/lib/iptables /var/lib/dpkg" tmpdir="/dev/shm/backups" currentfiles="$tmpdir/files.db" backupdb="$datadir/backups.db" @@ -22,7 +23,7 @@ touch $isoimage # chmod 600 $isoimage # Create filesystem on iso image here -dd if=/dev/null of=$isoimage bs=2048k count=0 seek=2220 +dd if=/dev/null of=$isoimage bs=1M count=0 seek=4440 mke2fs -b 2048 -F $isoimage echo "Mounting the iso image" @@ -38,7 +39,7 @@ echo "Running find to get the status of files" { for type in d f l; do findformat="$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0" - find /home -type $type -printf "$findformat" + find $backupdirs -type $type -printf "$findformat" done } > $currentfiles