Ok, I know one of you experts can help me out with this easy question....I backup our Linux server nightly, utilizing a simple script as a cron job. First I'll post the script, then the disk layout. My question is:
I just want to verify that everything is working correctly, but when I look at the log, the size is 38091850.....when looking at the disk configuration, I can't see how it gets this number. The script simply tars everything, excluding 4 or 5 filesystems. See if you can help me out please. Or, if there's an easy way to verify backups, please let me know!
Here's my script:
# $Header$
#
LOG=/var/log/backup.log
touch $LOG
echo -e "****Backup started: \c" >>$LOG
date >>$LOG
#
mt -f /dev/st0 rewind
mt -t /dev/st0 erase
#
cd /
#
DATE=`date -I`
touch /root/complete.$DATE
tar cvf /dev/st0 * --exclude data1 --exclude data2 --exclude data3 --exclude data4 --exclude proc > /root/complete.$DATE
#
#
# Update log
#
echo -e "****Backup ended: \c" >>$LOG
date >>$LOG
-----------------------------------------------------------------------------------------
Now, here's my filesystem setup....
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda5 20058176 10899556 8139700 58% /
/dev/sda1 93309 13799 74693 16% /boot
/dev/sda7 75117788 54387824 16914128 77% /data1
/dev/sdc5 114295692 90754956 17734848 84% /data2
/dev/sdd5 111196296 12675596 92872248 13% /data3
/dev/sdb6 74754464 17189600 53767504 25% /data4
/dev/sda6 20058176 489420 18549836 3% /opt
none 515528 0 515528 0% /dev/shm
/dev/sdd1 4134900 33052 3891800 1% /tmp
/dev/sdb5 39539116 16376768 21153824 44% /var
Thanks very much for any help.