1846764 Members
4774 Online
110256 Solutions
New Discussion

Re: Full System Backup

 
SOLVED
Go to solution
Narjis Zaidi
Occasional Advisor

Full System Backup

How do I do a full system backup to tape on a K9000 running 10.20? any help would be greatly appreciated
5 REPLIES 5
Alexander M. Ermes
Honored Contributor

Re: Full System Backup

Hi there.
That depends on the software you have installed. Using fbackup is one chance.
Use this in line mode, if you backup files of more than two GB.
Next would be cpio. sample :

today_=`date +'%y-%m-%d'`; export today_
#
LOG1=/usr/tmp/cpio_${today_}.1st; export LOG1
#
PATH=$PATH:/usr/local/bin
export PATH
exec > /usr/tmp/cpio_${today_}.log 2>&1
#
#
find / -depth -print | cpio -ocBv > /dev/rmt/0m 2>> ${LOG1} &
first_cpio=$!; export first_cpio
#
wait $first_cpio

if test $? -ne 0; then
echo "Full Offline Backup did not complete successfully!"
fi
echo "Time is: `/bin/date`"
echo "Time is: `/bin/date`"
echo "Time is: `/bin/date`" >> ${LOG1}

Next chance is OmniBack II, but this is a piece of software, that costs some money.
Rgds
Alexander M. Ermes

.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Narjis Zaidi
Occasional Advisor

Re: Full System Backup

Hi thanks for this but will this back up the operating system as well as all the partitions and all data?
boley janowski
Trusted Contributor
Solution

Re: Full System Backup

first i would install ignite, and run a

make_recovery -Ai

this will backup all of vg00 and allow you to boot off of that tape if you need too.

next i would run an fbackup on /vg00 only

bdf | grep vg00 | awk '{print $6}' > /tmp/graph
bdf | grep -v vg00 | grep -v Mounted | awk '{print $6}' >> /tmp/graph

vi /tmp/graph (for all vg00 put an i for all non vg00 put an e in front of each mount point eg..)

i /
i /home
i /var
e /vg01mountpoint
e /vg02mountpoint

save this

now run

fbackup -0 -g /tmp/graph -I /tmp/fb_log -f /dev/rmt/

=ioscan -funC tape (fbackup will choose /dev/rmt/0m by default, so you can leave -f /dev/rmt/ off first if your not sure and make sure there is activity on the drive after you start it)

after you do that, change all the "i" to "e" and vice versa in the /tmp/graph eg..

e /
e /home
e /var
i /vg01mountpoint
i /vg02mountpoint

now run the fbackup command

fbackup -0 -g /tmp/graph -I /tmp/fb_log2 -f /dev/rmt/

now you will have your:

vg00 tape
non vg00 tape
make_recovery tape (to recover a full OS if needed)

let us know if you need more detail, good luck, if your not sure about the tape device, put and ioscan -funC tape on the forum and some one will help you out.

Boley
Mark Vollmers
Esteemed Contributor

Re: Full System Backup

Once you have the basic files (like Boley said), it wouldn't be a bad idea to setup a backup routine to backup all the files on a regular basis. Either send the command to cron or you can set up the backup through SAM (backup and recovery > automatic). Just specify the folders you want (include /, exclude /tmp, etc) and tell it when. Works well, and emails problems. You only need to so the make_ignite tape when you change the OS (we do our quarterly if there are no changes).

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Narjis Zaidi
Occasional Advisor

Re: Full System Backup

Thanks for this guys, I shall go and try all of this - if I run into trouble I may contact you again - Thanks Again...N.