1834800 Members
2917 Online
110070 Solutions
New Discussion

Re: Info about back-up

 
Dario_4
Frequent Advisor

Info about back-up

Hi,
i wuold like to know which is the best way to back-up /home/try (and all the dir under it) on a tape?
Whit fbackup, inclueded into the file graph_file all the dir or with tar (tar cvf try.tar /home/try) .

Thanks
11 REPLIES 11
James Beamish-White
Trusted Contributor

Re: Info about back-up

Depends on your needs. Fbackup is faster, but is locked to HP-UX, while tar is standard across all unix.

If you only use HP-UX, then I'd go wth fbackup.

Party on Dude!
James
GARDENOFEDEN> create light
Dario_4
Frequent Advisor

Re: Info about back-up

Ok,
you are right.
But for back-up all direcory under /home/try on tape?

tar cvf try.tar /home/try

Is sufficent?

Thanks
Thierry Poels_1
Honored Contributor

Re: Info about back-up

Hi,

again "It depends"
fbackup is the most flexible tool, but only supported on HP-UX.
tar (and cpio) is the most compatible one, can be read on other unixes (even SCO, Linux, ...), but is less flexible than fbackup in restoring specific files to specific directories.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Deepak Extross
Honored Contributor

Re: Info about back-up

<< tar cvf try.tar /home/try
Is sufficent? >>

this would backup /home/try into a tar file try.tar in the directory from where you run the command. If you want it to go to the tape drive, don't use the 'f' flag.
"tar cv /home/tar" will send it to the default tape drive. Or use "tar cvf /dev/rmt/0m /home/tar" to send it to teh device /dev/rmt/0m.
You dont need to use a tar file name if you're writing to tape.

Also, I'd suggest you specify the relative path instead of an absolute path.
If your tar was created with "tar cv /home/tar", then when you untar it, it will overwrite or create the /home/tar directory.
Instead, do a "cd /home/tar ; tar cvf ./". You can untar this in any convenient directory when you need to.
Deepak Extross
Honored Contributor

Re: Info about back-up

oops..read "home/tar" as "home/try" in my last posting.

sed 's/home\/tar/home\/try/' last_post > new_post

:-)
Dario_4
Frequent Advisor

Re: Info about back-up

Eheh,
no problem Deepack. You are a master.
Do you suggest:

cd /home/try ; tar cvf ./ ??

This command, back up /home/tar and all the dir under /home/try to tape?

Thank you very much

Deepak Extross
Honored Contributor

Re: Info about back-up

Uh-oh..bad day.
It should be
"cd /home/try ; tar cv ./"
Or, if you want to specify the device name (say, if you have more than one tape drive and dont want to overwrite somebody else's tape)
"cd /home/try ; tar cvf ./"
Your tape drive could be /dev/rmt/0m or /dev/rmt/1m or whatever.

Hmmm..I didnt see that profile of yours before :-)
Deepak Extross
Honored Contributor

Re: Info about back-up

Alexander M. Ermes
Honored Contributor

Re: Info about back-up

Hi there.
Nice discussion, guys. What about the limit of tar or cpio with files larger than 2 GB ?
If you stay with HP machines, use fbackup in command line mode for these files.
For other systems think about OmniBack II.
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"
Fred Martin_1
Valued Contributor

Re: Info about back-up

If you elect to use cpio, the command would like somthing like this:

find /home | cpio -ocuvB > /dev/rmt/tapedev

That would backup everything under /home.

Restoring:

cpio -iBdcvm "filename" < /dev/rmt/tapedev

Listing tape contents:

cpio -ictBv < /dev/rmt/tapedev

Do a 'man' on cpio for the switches that would best fit what you are doing.
fmartin@applicatorssales.com