Re: fbackup

 
SOLVED
Go to solution
fizan
Super Advisor

fbackup


how to fire a fbackup on same server but diff location, eg: moving /home/test to /export/test
12 REPLIES 12
kemo
Trusted Contributor

Re: fbackup

fbackup -i /home/test -f - | (cd /export/test ; frestore -Xrf -)
ani007
Super Advisor

Re: fbackup

Fbackup:-

#fbackup -vf /dev/rmt/cXXtXdXBESTn -i /home/test -i /export/test -I /home/Index

with this you are tkng the backup of /home/test & /export/test..

========================================
[listing]
#frecover -f /dev/rmt/cXXtXdXBESTn -x -N -v

Regards,
Ani
ani007
Super Advisor

Re: fbackup

Things to remember about fbackup:-

*fbackup MUST rewind the tape before beginning the backup and after
completing.

Command Description

fbackup -vf /dev/rmt/0m -i / full system backup

fbackup -vf /dev/rmt/0m -i specifically include file/directory
/etc/hosts preceded by -i

fbackup -vf /dev/rmt/0m -i specifically include multiple
/etc/hosts -i /usr files/directories preceded by -i

fbackup -vf /dev/rmt/0m -e specifically exclude file/directory
/etc/hosts preceded by -e

fbackup -vf /dev/rmt/0m -g
graph_file_name backup from a graph file

frecover -xvf /dev/rmt/0m restore entire tape to originating
directory structure

restore entire tape to originating
frecover -xovf /dev/rmt/0m directory structure and overwrite any
existing files

cd /tmp restore entire tape to /tmp
frecover -xXvf /dev/rmt/0m (originating directory structure will
not be overwritten)

frecover -vf /dev/rmt/0m -I verify backup and read the index file
/tmp/index from the tape into a file called
/tmp/index


frecover -rNv -f /dev/rmt/0m 2>
/tmp/listing list of what is really on the tape

frecover -V /tmp/volume_headers
-f /dev/rmt/0m show volume headers on the tape
Regards,
Ani
kemo
Trusted Contributor
Solution

Re: fbackup

Hello

Backup and restore to the same server doesn't require tape drive at all.

by the below command you will be able to move directories across different filesystems within the same box

fbackup -i /home/test -f - | (cd /export/test ; frestore -Xrf -)


thanks
kamal
Johnson Punniyalingam
Honored Contributor

Re: fbackup

>>> how to fire a fbackup on same server but diff location, eg: moving /home/test to /export/test

# cd /home/test; fbackup -f - -i . | (cd /export/test; frecover -f - -r)
Problems are common to all, but attitude makes the difference
fizan
Super Advisor

Re: fbackup

Johnson,

Your cmd excatly works out but can you explain me,

cd /home; == going to the sorce dirctry.

fbackup -f - -i . ===??

|(cd /var/adm/crash;==== using pipe going to the destn dirctry.

frecover -f - -r)== -f -r ????

can you explain me?

Thanks
Johnson Punniyalingam
Honored Contributor

Re: fbackup

>> fbackup -f - -i . ===??
>> frecover -f - -r)== -f -r ????

man fbackup -> for more information
man frecover -> for more information

. referring to (current working dir)

Problems are common to all, but attitude makes the difference
kemo
Trusted Contributor

Re: fbackup

fbackup -i /home/test -f - | (cd /export/test ; frecover -f - -r)

Explanation :

fbackup

-i : include /home/test in the backup

-f : backup to non default distination

- : standard output

| : redirect the output to another command

frecover :

-r : restore everything
-f : restore from non-standard location
- : standard output

thanks
kamal
Dennis Handly
Acclaimed Contributor

Re: fbackup frecover

>kemo: -f: restore from non-standard location
>-: standard output

For frecover(1m), this should be stdin. :-)