Back up error !
Hi,
I have a script which does daily back up.
/**********************************
#!/bin/sh
DEVICE="sda1 sda3 sdb1 sdb2 sda5"
if ( ! mt -f /dev/st0 rewind) then
echo "No tape in drive" && exit 1
fi
for item in $DEVICE; do
mount /dev/$item -o remount,ro
dump -0auqb 64 -f /dev/st0 /dev/$item
mount /dev/$item -o remount,rw
done
**********************************/
It failed and gave me the following error for one of the file system.
Error message
==========
DUMP: cannot rewrite /etc/dumpdates: Read only file system
DUMP: Entire dump is aborted.
mount: /var is busy.
Can somebody please tell me what cause this error and how should i rectify it. Shall i again run the back and see whether i am getting the error or what. Any help would be highly appreciated.
Thanks in the anticipation that I will get some useful hint to solve the above problem.
Cheers!!
|