Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Hi!
I have tared up my 'apps' directory and now need to back it up onto a cartridge.
Anyone know the ufsdump command for this ?


Cheers,
71
 
Also,
Anyone know what command can I use to erase a cartridge ?
Cheers,
71
 
Have you tried mt -f /dev/rmt/0 erase. Substitute /dev/rmt/0 to whatever your device name is.

Greg.
 
Thanks Greg,
Just after doing it, did'nt take long.
I'm now using the following command to back up my tar file.

/usr/sbin/ufsdump -0cuvf /dev/rmt/0 filename



Cheers,
71
 
I got the following output from the backup:

# /usr/sbin/ufsdump -0cuvf /dev/rmt/0 apps.tar
DUMP: Writing 63 Kilobyte records
DUMP: Date of this level 0 dump: Thu 26 Jul 2001 11:31:36 AM IST
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0t0d0s0 (server:/) to /dev/rmt/0.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Estimated 1263492 blocks (616.94MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 81.01% done, finished in 0:02
DUMP: Tape rewinding
DUMP: Finished writing last dump volume
DUMP: Starting verify pass




DUMP: 51.69% done, finished in 0:07


DUMP: Tape rewinding
DUMP: 1263400 blocks (616.89MB) on 1 volume at 899 KB/sec
DUMP: DUMP IS DONE
# # # # # # #

Does this indicate a successfull backup ?






Cheers,
71
 
Looks like you've dumped the whole of the root filesystem. Which is fine if the file you're wanting is within it - it can easily be restored using ufsrestore. However, you might have been better to have used tar to write the individual file to tape:

tar cvf dev/rmt/0 apps.tar
 
Thanks,
How can I check to see if it was successfull ?
tar tvf /dev/rmt/0 apps.tar ?

And to restore it back.

tar xvf /dev/rmt/0 apps.tar ?


Cheers,
71
 
To check whether the file was written to the tape successfully use:

tar tvf /dev/rmt/0

the command should show you what's on the tape without restoring the file itself.

As you say, restore using tar xvf

Fun this isn't it?

Cheers.
 
Will 'tar xvf /dev/rmt/0 /opt' restore it onto the /opt partition ? Cheers,
71
 
Your best best is to cd to the /opt directory and issue the tar command from there.
 
Hi

Along these lines.

What command should I use to backup the whole system and also zip it? if it will fit.

And the restore command?

I guess I need to give a file name in there somewhere.

is this close?

tar zxvf / /dev/rmt/0/filename

tar zxvf /dev/rmt/0/filename /
 
Now that I think about it the one big file idea is pretty lame.

How do I determine the correct density to use for my drive and tapes.
 
Use ufsdump & ufsrestore to backup the full server.

Greg.
 
You can also compress it by using the 'compress' command.
Use 'uncompress' to ... Cheers,
71
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top