![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tape drives used for taking backups | forumsrahul | Filesystems, Disks and Memory | 1 | 05-14-2008 09:04 AM |
| Tape Status shows 2 Hard errors and 5 Underruns on new tape | psytropic | SCO | 5 | 04-24-2008 02:29 PM |
| tape drives vs. tar with multiple directories | d3m00n | BSD | 1 | 12-06-2007 01:09 PM |
| verifying tape backups | coffeebrown | UNIX for Dummies Questions & Answers | 0 | 07-31-2007 04:13 PM |
| backups getting it so the tape doesn't rew. | justinburbridge | AIX | 2 | 05-16-2006 11:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
I have found a successful solution; it can be a bit complicated, but it does work:
Notes, see which device node I have used: basic device /dev/ast0 No rewind /dev/nast0 Retension tape and compression on are correct; complete first backup with no-rewind: # tar cf /dev/nast0 /home/root now set the end of file marker, with rewind: # mt -f /dev/ast0 weof 1 Ok - here's where it get interesting, you now need to forward the tape to the right location for the next archive (no-rewind) - HOWEVER, I found that when this command is issued, the "mt" program does NOT wait for the device before returning control to the command line ~ be mindful of this in your shell scripts, etc: # mt -f /dev/nast0 fsf 1 Now do the next archive and write the "weof" marker: # tar cf /dev/nast0 /var/ # mt -f /dev/ast0 weof 1 Do this as many times as required, but make sure you move the tape sufficient times forward each time, eg. after my "/var/" backup the tape will rewind, therefor I will have to move the 2 files foward to do the next archive (eg. mt -f /dev/nast0 fsf 2) OK - Now to get it back!!! Easy peasy! Let's say I want the var directory back; first move to the right location then untar as usual: # mt -f /dev/nast0 fsf 1 # tar xf /dev/ast0 Hope this helps everyone!!!! |
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|