HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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

Re: fbackup frecover

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

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

kemo
Trusted Contributor

Re: fbackup

YES

thanks Mr. Dennis Handly for your continues cooperation :)
Ismail Azad
Esteemed Contributor

Re: fbackup

Hi,
> Dennis
For frestore(1m), this should be stdin. :-)

You talkin' bout frecover right?? Am aware of a restore command that is used for restoring the filesystem incrementally on the local environment or accross the network. An frestore does not ring a bell. (typo error??) . :)

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....

Re: fbackup

>Ismail: You talkin' bout frecover right?

Oops yes, I should have cut&pasted the command.