Restoration issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Restoration issue
# 1  
Old 05-28-2007
Restoration issue

Dear All,

I am using sun OS server and performing weekly backup on a tape DDS2 for log files for the past 7 days, the log file sizes are ranging between 1 - 2 G......When i want to restore a specific file from the tape, i have to restore the whole files from the tape by using the command (tar xvf device_name), because i dont know how to restore only that specific file.....is there a way to do that or it's going like this everywhere?

Thanks in advance for your support.....
# 2  
Old 05-28-2007
You can restore one or more specific file from an tar archive by specifying the files as argument to the 'tar xf' command.
Code:
$ tar cvf save.tar Test
Test/
Test/123
Test/a11
Test/bob.txt
Test/john.txt
Test/lulu.txt
Test/toto.txt
$ tar tvf save.tar
drwxr-xr-x Jean-Pierre/Aucun 0 2007-05-20 10:32 Test/
-rw-r--r-- Jean-Pierre/Aucun 0 2007-05-20 10:32 Test/123
-rw-r--r-- Jean-Pierre/Aucun 0 2007-05-20 10:32 Test/a11
-rw-r--r-- Jean-Pierre/Aucun 4 2007-05-19 17:14 Test/bob.txt
-rw-r--r-- Jean-Pierre/Aucun 5 2007-05-19 17:14 Test/john.txt
-rw-r--r-- Jean-Pierre/Aucun 5 2007-05-19 17:13 Test/lulu.txt
-rw-r--r-- Jean-Pierre/Aucun 5 2007-05-19 17:13 Test/toto.txt
$ tar xvf save.tar Test/123
Test/123
$ tar xvf save.tar Test/123 Test/bob.txt
Test/123
Test/bob.txt
$

Jean-Pierre.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Mksysb restoration

Hi, I am an newbie to AIX. Recently, I being assigned to do an mksysb restoration at our DR site. It always encounter "Out of Space" during restoration, this is even when I restored to 4x146GB HDD. Even though, on production, it only need 2x146GB HDD for the rootvg. What is the problem, I... (19 Replies)
Discussion started by: AIXBlueCat
19 Replies

2. Solaris

Error after systeme restoration

Rebooting with command: boot Boot device: /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk@0,0:a File and args: SunOS Release 5.10 Version Generic_147440-01 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. WARNING: system call missing from bind file... (8 Replies)
Discussion started by: andersonedouard
8 Replies

3. Shell Programming and Scripting

MySQL Restoration Backup Script

Hi there, Alright I have this line that I'm working with (bash programming): mysql -u username -pHASH ${args} < /home/site/backups/site.${args}.sql I get this error on that line: ./restore.sh: line 51: syntax error near unexpected token `newline' ./restore.sh: line 51: `mysql -u... (5 Replies)
Discussion started by: Pandoula
5 Replies

4. Solaris

question about restoration from backup tape (solaris 10)

I am trying to restore opt on my server. my issue is, all the partitions are saved into the same back up tape. what is the exact command to just restore /opt for example, supposing c0t0d0s7 is the partition for /opt ---------- Post updated at 01:16 PM ---------- Previous update was at... (7 Replies)
Discussion started by: feg
7 Replies

5. AIX

Data restoration

I am having the Lexmark/IBM 1/2” 3490E Tape Cartridge which contains old data which had taken up some years back. I want to know what kind of data is available and which backup product is used for backup the data and from which OS the data has been backup. It would be helpful for me if could... (3 Replies)
Discussion started by: kmvinay
3 Replies

6. AIX

mksysb restoration using NIM

Hi, I just want to ask whether anyone has experience on restoring mksysb backup in NIM. We have taken the mksysb backup and the SPOT has been configured on NIM also. I just want to know the checkpoints before doing this. Is there any checkpoints we need to do? Do we need to unmirrorvg? This... (12 Replies)
Discussion started by: depam
12 Replies

7. AIX

mksysb restoration steps

please provide me with the steps to restore from mksysb tape. i m using AIX 5.3 TL 7 (2 Replies)
Discussion started by: debasis9
2 Replies

8. Solaris

restoration

i have 2 hardisk. Hardisk A and Hardisk B. i have backup the oracle folder from hardisk A to hardisk B c0t0d0s4/oracle. If i want to restore , what is the command and what do i need to do ? urgent help needed. Thanks for your quick reply . (1 Reply)
Discussion started by: Farbegas
1 Replies

9. Solaris

Can before and after snapshots be used to verify successful filesystem restoration?

Hello Guys, Can before and after snapshots be used to verify successful filesystem restoration? snapshots will be created using fssnaps and restoration is thru legato restore? Any ideas on this? or any other ways I could verify that restoration is good? Regards (0 Replies)
Discussion started by: MarkyBoy
0 Replies

10. UNIX for Dummies Questions & Answers

file restoration to new directory - tar command

hi, i face some problem which need URGENT assistance. am performing a restoration for recovery in an AIX UNIX server. when i use the tar -tvf command to view the tape contents, it gives me /ata1/mydir/myfile. i understand that how the file was backed up determine whether we could restore... (2 Replies)
Discussion started by: newbie168
2 Replies
Login or Register to Ask a Question