Sponsored Content
Full Discussion: Restoring a file from Tape
Top Forums UNIX for Dummies Questions & Answers Restoring a file from Tape Post 3335 by mfischer on Friday 29th of June 2001 03:57:58 AM
Old 06-29-2001
worked it out....

The major issue that i had was that the data was copied to tape using file marks..
So to pass this information onto those who may be interested in cpio...

To rewind the tape user the following command:
tape -s rewind

To advance the tape to the next file mark:
tape rfm

To check tape status:
tape status

To list what is located in the file mark:
cpio -itv </dev/nrStp0 > filelist
The you can cat or more the list to locate the file you need.

To restore a specific file from tape to the current dir:
cpio -ickvdumBI /dev/nrStp0 "%filename%"

To check the files now exist:
ls-l %filename%

To to set the access rights for the restored file:
chgrp %unname% %filename%

 

10 More Discussions You Might Find Interesting

1. AIX

Problems restoring from tape in AIX

I am trying to restore some files from a DLT drive in AIX 4.3 but I am having a few problems. Basically when I try to run the restore command I get the following error: Cannot read from the specified input. Please enter the device name when ready I am the following command for the restore ... (0 Replies)
Discussion started by: The Hunter
0 Replies

2. UNIX for Dummies Questions & Answers

Blocksize problem restoring file from tape

I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize. The part of the script that does the tar looks like this: tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies

3. Shell Programming and Scripting

Restoring a file

I'm new to Unix and have just wrote a little program to move files to a recycle bin (a Directory i created) and restore them. The problem is that i need to keep track of all the full filenames so that i can restore them to the right place. I did this by creating a file called delreg and putting the... (4 Replies)
Discussion started by: zoolz
4 Replies

4. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

5. UNIX for Dummies Questions & Answers

Restoring tape files...

Hi all, I have kinda inherited this problem, but was wondering if anyone else had any ideas. Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

6. Solaris

Problem restoring files from remote tape drive

Server 1 - Sun Solaris 5.8 sparc SUNW,Sun-Fire-480R with attached DLT tape drive /dev/rmt/0n Server 2 - Old DG-UX box which has restore command on it compatible with the files on the backyup tape - backed up with dump2 Server 3 - Sun solaris 5.9 sparc SUNW,Sun-Fire-V490 with lots of free space... (4 Replies)
Discussion started by: lindab
4 Replies

7. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

8. Solaris

Restoring dump from tape to SCSI disk

Hi Gurus, I need help. Mine is an Ultra 10 machine running on solaris 7. Problem with solaris 7 is, it can no longer recognize IDE disks greater that 10GB. My workaround is ro use an external SCSI disk since it is recognizable with solaris 7. I backup my filesystems (residing on the IDE... (2 Replies)
Discussion started by: domesat
2 Replies

9. Solaris

Information about taking dump of a unix server on a tape and then restoring

Hi all, Can anyone provide me with a site or book that gives detailed information about taking dump of a unix server on a tape and then restoring the server from the dump Also i want information about migration from old server to new server (solaris 5.6 to solaris 8) (3 Replies)
Discussion started by: asalman.qazi
3 Replies

10. Shell Programming and Scripting

Restoring problem on tape!

hi all , a messages appeared to me when i was checking my /var/adm/messages and the below code was in it Oct 6 13:15:21 medprod scsi: /pci@3,700000/SUNW,emlxs@0/fp@0,0/st@w21000024ff305234,7 (st1): Oct 6 13:15:21 medprod Restoring tape position at fileno=320,... (5 Replies)
Discussion started by: semaan
5 Replies
BACKUP_STATUS(8)					       AFS Command Reference						  BACKUP_STATUS(8)

NAME
       backup_status - Reports a Tape Coordinator's status

SYNOPSIS
       backup status [-portoffset <TC port offset>]
	   [-localauth] [-cell <cell name>] [-help]

       backup st [-p <TC port offset>]
	   [-l] [-c <cell name>] [-h]

DESCRIPTION
       The backup status command displays which operation, if any, the indicated Tape Coordinator is currently executing.

OPTIONS
       -portoffset <TC port offset>
	   Specifies the port offset number of the Tape Coordinator for which to report the status.

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The following message indicates that the Tape Coordinator is not currently performing an operation:

	  Tape coordinator is idle

       Otherwise, the output includes a message of the following format for each running or pending operation:

	  Task <task_ID>:  <operation>:   <status>

       where

       <task_ID>
	   Is a task identification number assigned by the Tape Coordinator.  It begins with the Tape Coordinator's port offset number.

       <operation>
	   Identifies the operation the Tape Coordinator is performing, which is initiated by the indicated command:

	   Dump
	       The backup dump command.

	   Restore
	       The backup diskrestore, backup volrestore, or backup volsetrestore commands.

	   Labeltape
	       The backup labeltape command.

	   Scantape
	       The backup scantape command.

	   SaveDb
	       The backup savedb command.

	   RestoreDb
	       The backup restoredb command.

       <status>
	   Indicates the job's current status in one of the following messages.

	   number Kbytes transferred, volume volume_name
	       For a running dump operation, indicates the number of kilobytes copied to tape or a backup data file so far, and the volume
	       currently being dumped.

	   number Kbytes, restore.volume
	       For a running restore operation, indicates the number of kilobytes copied into AFS from a tape or a backup data file so far.

	   [abort requested]
	       The backup kill command was issued, but the termination signal has yet to reach the Tape Coordinator.

	   [abort sent]
	       The operation is canceled by the backup kill command.  Once the Backup System removes an operation from the queue or stops it from
	       running, it no longer appears at all in the output from the command.

	   [butc contact lost]
	       The backup command interpreter cannot reach the Tape Coordinator. The message can mean either that the Tape Coordinator handling
	       the operation was terminated or failed while the operation was running, or that the connection to the Tape Coordinator timed out.

	   [done]
	       The Tape Coordinator has finished the operation.

	   [drive wait]
	       The operation is waiting for the specified tape drive to become free.

	   [operator wait]
	       The Tape Coordinator is waiting for the backup operator to insert a tape in the drive.

       If the Tape Coordinator is communicating with an XBSA server (a third-party backup utility that implements the Open Group's Backup Service
       API [XBSA]), the following message appears last in the output:

	  <XBSA_program> Tape coordinator

       where <XBSA_program> is the name of the XBSA-compliant program.

EXAMPLES
       The following example shows that the Tape Coordinator with port offset 4 has so far dumped about 1.5 MB of data for the current dump
       operation, and is currently dumping the volume named "user.pat.backup":

	  % backup status -portoffset 4
	  Task 4001:  Dump:   1520 Kbytes transferred,	volume user.pat.backup

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
       onto a server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       backup(8), butc(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							  BACKUP_STATUS(8)
All times are GMT -4. The time now is 09:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy