LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-22-2015, 02:32 PM   #1
d072330
Member
 
Registered: Nov 2007
Location: USA
Distribution: CentOS 5/6
Posts: 186

Rep: Reputation: 6
Multiple tape copy using tar


All,

I have done these many times so that is not my issue.

My issue is that I ejected tape #2 that was full like normal but when it asked for the next tape (#3) I accidentally hit return before putting in the new tape.

My question is when or if I have to restore this backup will it not finish the restore because it will be looking for tape #3 that does not exist?

Thanks in advance!
 
Old 01-23-2015, 07:11 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I don't think there's enough information here to answer. What happened after the point where you forgot to insert the tape? I mean, it would eventually detect that there was no media, right?

Rather than proceed with a question mark no the whole subject of that archive, why not just create a new archive where you don't forget to insert all the tapes?
 
Old 01-23-2015, 11:07 AM   #3
d072330
Member
 
Registered: Nov 2007
Location: USA
Distribution: CentOS 5/6
Posts: 186

Original Poster
Rep: Reputation: 6
I was going to start over but thought I would just pose the question to the forum first to see if anyone had experienced this before.

As far as what happened this is what happened.

Prompt read this:

Prepare volume #3 for `/dev/nst0' and hit return:

I hit return by accident.

prompt immediately came back with this:

Prepare volume #4 for `/dev/nst0' and hit return:

I inserted tape waited a few minuted then hit return. It wrote out data to tape #3 but I think the tar thinks it is tape #4.

I may let it finish and then restore just to find out what will happen.
 
Old 01-23-2015, 03:16 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Sounds like the script or whatever did not anticipate that form of error and then just proceeded to the next step. Right, my guess is either one chunk is missing either in the middle or at the end.
 
Old 01-23-2015, 04:37 PM   #5
d072330
Member
 
Registered: Nov 2007
Location: USA
Distribution: CentOS 5/6
Posts: 186

Original Poster
Rep: Reputation: 6
Was not a script was just using straight tar command.

sudo tar -cMpvf /dev/nst0 /backups
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a tar tape to another tape kaplan71 Linux - General 2 02-29-2012 07:35 PM
Multiple backups on tape using tar. KiddSS Linux - Newbie 2 10-16-2009 07:03 AM
Using TAR to write multiple sessions to the same tape WojtekO Linux - Software 10 04-23-2009 08:25 PM
Using Tar/Star to copy a compressed file from tape geokker Linux - Software 1 09-09-2005 07:32 AM
Using the Multiple tape option with TAR bassman Programming 0 07-08-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration