The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape Status shows 2 Hard errors and 5 Underruns on new tape psytropic SCO 5 04-24-2008 01:29 PM
Can I safely kill vdump? nickt UNIX for Advanced & Expert Users 4 08-21-2007 12:19 PM
vdump on aix? veccinho AIX 1 07-13-2007 08:48 AM
digital unix vdump restore in hp ux11i jestinabel HP-UX 1 12-09-2006 07:02 AM
Vdump of two filesystems geraldwilson Filesystems, Disks and Memory 4 03-21-2005 10:03 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2005
xadamz23 xadamz23 is offline
Registered User
  
 

Join Date: Aug 2003
Posts: 31
tar and vdump on same tape?

Hello,

This might be a dumb question, but I havent been able to find the answer anywhere.

I currently have a backup script that uses 'tar' to backup some files to tape. I need to add a directory to the backup script, but I want to use 'vdump' to back it up to tape.

So my question is can I backup using 'tar' then backup using 'vdump' to the SAME tape? Can they reside on the same tape without causing any issues?
  #2 (permalink)  
Old 12-05-2005
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
You should have no problem putting multiple types of file systems on a tape assuming there's enough room to hold it.

You'll need to "fast forward" past the tar backup (I do this on Solaris so I can't guarentee the commands I'm offering here will help, but maybe the concepts will help you find the proper commands on your OS):

mt -f /dev/rmt/0n fsf 1

On Sun, the 0n device is the first tape but it's the "no rewind device" so mt will forward to the first block past the EOF and not rewind the tape (this is important). You can change the last number if you want to back up a third block of data.

Next use the backup command to back up the data. If you have another file system to back up, you can continue past the vdump backup as long as you use a "no rewind device" for vdump. Otherwise you'll have to jump past two backup blocks:

mt -f /dev/rmt/0n fsf 2

To restore from the second backup on the tape, you use the same mt command to get past the first EOF block to the vdump backup and then restore it.

Hope that helps as I don't know what vdump is. You can also pick up O'Reilly's backup and recovery book. Excellent book.

Carl
  #3 (permalink)  
Old 08-12-2008
yasin yasin is offline
Registered User
  
 

Join Date: Apr 2008
Location: lebanon
Posts: 5
Quote:
Originally Posted by BOFH View Post
You should have no problem putting multiple types of file systems on a tape assuming there's enough room to hold it.

You'll need to "fast forward" past the tar backup (I do this on Solaris so I can't guarentee the commands I'm offering here will help, but maybe the concepts will help you find the proper commands on your OS):

mt -f /dev/rmt/0n fsf 1

On Sun, the 0n device is the first tape but it's the "no rewind device" so mt will forward to the first block past the EOF and not rewind the tape (this is important). You can change the last number if you want to back up a third block of data.

Next use the backup command to back up the data. If you have another file system to back up, you can continue past the vdump backup as long as you use a "no rewind device" for vdump. Otherwise you'll have to jump past two backup blocks:

mt -f /dev/rmt/0n fsf 2

To restore from the second backup on the tape, you use the same mt command to get past the first EOF block to the vdump backup and then restore it.

Hope that helps as I don't know what vdump is. You can also pick up O'Reilly's backup and recovery book. Excellent book.

Carl


Hi,


first of all use:
ufsdump 0ucf /dev/rmt/0hbn /
this comand to do the backup for any file system ( here we do for root). notice the following
h : stands for high density tape
b: block
n: no rewind
0: the name of drive 1 or 2 or 3 as you defind it


second use :
tar cvf /rmt/0hbn /dataaa (dataaa is your data that you want to back it up).


yasin
  #4 (permalink)  
Old 08-12-2008
yasin yasin is offline
Registered User
  
 

Join Date: Apr 2008
Location: lebanon
Posts: 5
Hi,


first of all use:
ufsdump 0ucf /dev/rmt/0hbn /
this comand to do the backup for any file system ( here we do for root). notice the following
h : stands for high density tape
b: block
n: no rewind
0: the name of drive 1 or 2 or 3 as you defind it


second use :
tar cvf /rmt/0hbn /dataaa (dataaa is your data that you want to back it up).


yasin
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0