![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tape drives used for taking backups | forumsrahul | Filesystems, Disks and Memory | 1 | 05-14-2008 05:04 AM |
| Tape Status shows 2 Hard errors and 5 Underruns on new tape | psytropic | SCO | 5 | 04-24-2008 10:29 AM |
| tape drives vs. tar with multiple directories | d3m00n | BSD | 1 | 12-06-2007 09:09 AM |
| verifying tape backups | coffeebrown | UNIX for Dummies Questions & Answers | 0 | 07-31-2007 12:13 PM |
| backups getting it so the tape doesn't rew. | justinburbridge | AIX | 2 | 05-16-2006 07:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
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!!!!
__________________
FreeBSD - Opening computers from closed Windows |
|
||||
|
Quote:
__________________
Not quite as cool as all the other Kids... |
||||
| Google The UNIX and Linux Forums |