LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-29-2014, 09:26 AM   #16
batcountry
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by szboardstretcher View Post
Here is a test I JUST ran successfully on my tape array:

Code:
# Load a tape and rewind
mtx -f /dev/changer status
mtx -f /dev/changer load 0 1
mt -f /dev/st0 rewind

# Tar and compress a text file to the tape
tar -czvf /dev/st0 /root/testing1.txt

# Look at the contents of the tape
tar tvf /dev/st0

# Restore the file from the tape
mkdir /tmp/restore && cd /tmp/restore
tar -xzvf /dev/st0 root/testing1.txt
What I am concerned about is that you cannot list the contents of the tape. Once we have that part nailed down, restoration is simple. If listing has worked, please provide the list contents.
yeah, it's looking like I can't list the contents of the tape. Just now I;

1. rewound the tape
2. created a test file (/root/test.txt)
3. tar and compress file to tape, which gave the output:

Code:
tar: Removing leading `/' from member names
/root/test.txt
4. tried to look at the contents of the tape as you suggested, which gave no output

Thanks again for all your replies, it's very much appreciated!
 
Old 07-30-2014, 05:13 AM   #17
batcountry
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Another update...

Tried to list the contents of another tape on the same server and it appeared to work, although I should test the restore to be sure. Also not sure why it would be called 'config' (although that name is specified in the backup script);

Code:
[root@batcountry ~]# tar -b 128 -tvf /dev/nst0
-rw-r--r-- root/root 57188510653 2014-07-22 21:28:28 config.tar.gz
I tried the same command on the tape I actually want to restore from and get;

Code:
[root@batcountry ~]# tar -b 128 -tvf /dev/nst0
tar: Record size = 20 blocks
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
 
Old 07-30-2014, 08:42 AM   #18
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Try this to see what is on the tape:
Code:
dd if=/dev/st0 bs=64k count=1 | file -k -
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems restoring system from backup using rsync rootaccess Linux - General 18 11-25-2012 03:23 AM
Restoring tape contents g_ramesh Linux - Newbie 4 10-18-2010 06:29 AM
[SOLVED] Failure restoring a cpio backup from tape dguy Linux - Server 10 03-29-2009 09:12 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Help restoring from tape and tar...... TheDirtyPenguin Linux - Software 1 02-17-2004 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:09 PM.

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