1753797 Members
7410 Online
108803 Solutions
New Discussion юеВ

Re: fbackup command

 
SOLVED
Go to solution
Francois Bariselle_3
Regular Advisor

fbackup command

I want make backup of intire vg01 on my system using fbackup command.

write the complete command please.

easy point !!!
Fais la ...
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: fbackup command

Before we can give you the command we need to know what mounted filesystems are part of VG01. fbackup works on filesystem names NOT VG names. The output of 'bdf -l' would be most helpful.
David Burgess
Esteemed Contributor
Solution

Re: fbackup command

run bdf to get all the filesystems in vg01. Then if you had /fs1 and /fs2 and your tape drive is /dev/rmt/0m you would run :-


#fbackup -f /dev/rmt/0m -v -i /fs1 -i /fs2 -I /tmp/mylogfile.txt

You could run :-

#fbackup -f /dev/rmt/0m -v -g /tmp/mygraph -I /tmp/mylogfile.txt

where /tmp/mygraph contains

i /fs1
i /fs2

Use -e to exclude subdirectories.

Hope that helps

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: fbackup command

Note the logfile is -I which is capital i not capital l (el). The font isn't clear.

Regards,

Dave.
A. Clay Stephenson
Acclaimed Contributor

Re: fbackup command

I would do something like this. I assume you already have a config file for fbackup.

#!/usr/bin/sh

TDIR=${TMPDIR:-/var/tmp}
PID=${$}
GFILE=${TDIR}/${PID}.graph
DEV=/dev/rmt/1m
CONGIG=myconfigfile
LEVEL="0"
VG="/dev/vg01"

rm -f ${GFILE}
bdf -l | grep -E "^${VG}" | awk '{print $NF}' | while read FS
do
echo "i ${FS}" >> ${GFILE}"
done

if [[ -s "${GFILE}"" ]]
then
fbackup -f ${DEV} -${LEVEL} -g ${GFILE}
fi

rm -f ${GFILE}

If it ain't broke, I can fix that.