# file locations and other values
today=$(date +%Y%m%d%H%M%S)
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"
# 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"
{
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