04-13-2007
Restore Script
Hope I have posted this in the correct forum. I'm trying to recover some Oracle files from tape to setup an offsite recovery system. These files are nightly backdumps tar to tape.
I have recovered rootvg and vg01 from the weekends full backup, now to restore these nightly files I discovered I need to tar the device in nonrewind mode like this tar -xvf /dev/rmt0.1 This will restore the file into the current directory which I had setup for this process. The file will copy and will stop at the beginning of the next file, than using the history I reissue the tar command again. and again until the end of tape.
What I'm looking for is if anyone has a script that I can run that will run tar -xvf /dev/rmt0.1 and keep rerunning that command until the end of tape, it probably will need to check and make sure the tape system is not currently busy or at the end of tape.
If anyone has a script or knows someone who might have it I would greatly appreciate it. Thanks
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have the following script to restore file and grep information. However, once it restore file, it showing a lot useless information and different to check which file have the statement "John price $200". Can I not show any information while running script. It only show..when found the... (1 Reply)
Discussion started by: happyv
1 Replies
2. AIX
Hi all,
I am still working on my mksysb restore.
My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored.
0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any
available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies
3. Shell Programming and Scripting
Hello all:
I need found script to save and restore file permissions and owner:group... this is for backup my server...
I have one problem in my server and file permissions and owner:group, mess up..
For this reason i need found one way to secure this aspect of the server...
Thanks! (1 Reply)
Discussion started by: joangopan
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Attempting to make a auto restore script i have one made for backing up cron and installed programs just need to... (1 Reply)
Discussion started by: paperghost
1 Replies
5. Shell Programming and Scripting
Hello Friends,
I am trying to create an rsync file restore script. I will post want I have below and explain the problem I am having.
#!/bin/bash
#
# Partial Rsync File Restore Script
#
#
clear
echo
# Shell loads into /raid0/data/backup/bin/
cd .. # I cd to the backup... (1 Reply)
Discussion started by: jdavis_33
1 Replies
6. Shell Programming and Scripting
this is complete.. (2 Replies)
Discussion started by: zinn
2 Replies
7. Shell Programming and Scripting
Hi there I am making a recycle bin script in linux that consists of three scripts delete, trash and restore.
The problem is with my restore script, it is using a Paths text file to store file locations when it is deleted, so that if the user restores a file out of the trash bin (recyclebin) the... (8 Replies)
Discussion started by: zinn
8 Replies
8. Shell Programming and Scripting
Hi there is anyone able to show me two scripts for a delete and a restore command.
Delete - move a file to a dustibin directory that i have created. check to see if that file exsits first in the dustbin if so delete the file before moving the new one.
Restore - return the file to its... (1 Reply)
Discussion started by: arsenal1994
1 Replies
9. Shell Programming and Scripting
Hi all,
I have been tasked with creating a script that sends a file into a created "recycling" directory and another script that restores a "deleted" file. I have already created the removal script but am stuck on the restoring part.
I need to restore the file to its original location by... (0 Replies)
Discussion started by: bashbeginner
0 Replies
LEARN ABOUT DEBIAN
dds-dd
dds-dd(1) General Commands Manual dds-dd(1)
NAME
dds-dd - tool to read a dds device.
SYNOPSIS
dds-dd [ -f device ]
DESCRIPTION
dds-dd reads a dds tape devices (DAT). Every block is read and written to stdout. A tape with unknown block size or blocks of different
size can be read.
The default device is /dev/rmt0, which may be overridden with the environment variable TAPE, which in turn may be overridden with the
-f device option. The device must be a character special file.
OPTIONS
-f device
Device of the tape archive (default is /dev/rmt0). Must be a character special file connected to a dds tape device.
-V,--version
Print the version number of mt-dds to stderr and exit immediately.
--help print some screens of online help with examples through a pager and exit immediately.
EXAMPLES
Example: Read the tape and make a listing:
dds-dd | tar ft -
Example: Read the tape and make a listing:
dds-dd | cpio -it
ENVIRONMENT
The environment variable TAPE overrides the default tape device /dev/rmt0.
SEE ALSO
dds2tar(1), dds2index(1), mt(1), tar(1)
HISTORY
This program was created to use it in conjunction with dds2tar.
AUTHOR
J"org Weule (weule@cs.uni-duesseldorf.de), Phone +49 211 751409. This software is available at ftp.uni-duesseldorf.de:/pub/unix/apollo
2.4 dds-dd(1)