Sponsored Content
Operating Systems BSD tape drives vs. tar with multiple directories Post 302149500 by d3m00n on Thursday 6th of December 2007 10:49:26 AM
Old 12-06-2007
tape drives vs. tar with multiple directories

Hello,

I have a little problem with backup & restoring files from tape drive.

I am adding 3 directories to my tape, and it is OK:

hades# tar -cvf /dev/nsa0 test test1 restore
a test
a test/level1
a test/myharddisk.img
a test1
a test1/level1
a test1/myharddisk.img
a test1/test.img
a restore
a restore/.cshrc
a restore/.mail_aliases
a restore/.login
a restore/.rhosts
a restore/.login_conf
a restore/.mailrc
a restore/.profile
a restore/.shrc
a restore/myharddisk.img
a restore/test
a restore/tarlist
a restore/test1
a restore/terlist
a restore/tapefilelist
a restore/test1/level1
a restore/test1/myharddisk.img
a restore/test1/test.img
a restore/test/level1
a restore/test/myharddisk.img

When I am checking tape I see only 1st directory:

hades# tar -tvf /dev/nsa0
drwxr-xr-x 0 root peter 0 Dec 5 18:05 test
drwxr-xr-x 0 root peter 0 Dec 5 18:04 test/level1
-rw-r--r-- 0 root peter 10000000 Dec 5 18:05 test/myharddisk.img

Backup contents of tape and I am a little supprissed.

hades# tar -xvf /dev/nsa0
x test
x test/level1
x test/myharddisk.img
hades# ls -l
total 2
drwxr-xr-x 3 root peter 512 Dec 5 18:05 test
hades#

1. Do you have any idea what is wrong?
2. How to check structure of files added to tape drive using tar?
When I am using
tar -tvf /dev/nsa0
I always see the first directory.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DDS Tape Drives

How do I find if a server contains a DDS3 or a DDS2 drive remotely ? I checked in SMIT and I noticed the description field according to tape drives, but is there another more thorough way? Thanks, Luke (0 Replies)
Discussion started by: Skywlkr235
0 Replies

2. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

3. UNIX for Advanced & Expert Users

Scalar i500 can see tape drives but not autochanger

We have a new i500 and have 4 TLO4 drives which are connected directly to 2 FC cards on the host. The host can communicate with the autochanger through whichever drive that is set as control path. When I run inquire, all 4 drives are listed but auto changer doesn't show up. Does anyone know... (1 Reply)
Discussion started by: tecky
1 Replies

4. Filesystems, Disks and Memory

Tape drives used for taking backups

Hi, I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
Discussion started by: forumsrahul
1 Replies

5. UNIX for Dummies Questions & Answers

tar, zip multiple separate directories and move the results to another volume

TIA, I'm using FreeBSD 6 I have a series of Directories (A,B,C,...Z). Each directory has files and other directories within it. I want to compress the contents of each top directory into a single file so that I get an archive of each directory (for example, A.gzip) AND and want to move... (5 Replies)
Discussion started by: jccbin
5 Replies

6. Solaris

tape drives not recognised

I have a server/domain on a m5000 running Solaris 10. It is part of a cluster. The other cluster member sees tape drives, but this one does not. It is zoned correctly, and I can see the drives are binded in lputil. The st.conf, and devlink.tab are identical. ST.CONF: - # # Copyright... (1 Reply)
Discussion started by: pfwhufc
1 Replies

7. Solaris

Adding new tape drives

hi, i am using Solaris 8 on a sparc box and already have 4 tape drives in a backup libaray attached to my unix server. we have recently added 2 new tape drives to the libaray and now want to get unix to see them. have it working in windows. how do i scan for new hardware and add theses new... (5 Replies)
Discussion started by: dshakey
5 Replies

8. Shell Programming and Scripting

Extract a tar ball into multiple directories

#cat a BAC064DAL BAC063DAL BAC056PHX BAC066DAL BAC062PHX BAC062DAL BAC060DAL BAC058PHX BAC054PHX BAC051PHX # for i in `cat a` > do > tar xvf $a/$a*.tar* > done tar: /*.tar*: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: /*.tar*: Cannot... (3 Replies)
Discussion started by: kenshinhimura
3 Replies

9. Shell Programming and Scripting

Tar extract a multiple directories

i extract it through script, is there any way to script or automate to tar extract a tarfiles in multiple directories at once? Cannot open: No such file or directory tar: Error is not recoverable: exiting now for dir in `ls -d /tarfiles/*/ | sed 's/.$//'` do rm -f $dir/*.tar mv -f... (1 Reply)
Discussion started by: kenshinhimura
1 Replies
partclone.restore(8)					      System Manager's Manual					      partclone.restore(8)

NAME
partclone.restore - The utility to restore an etx2/ext3 partition. SYNOPSIS
partclone.restore [options]... [MODE] [SOURCE FILE] [OUTPUT FILE] DESCRIPTION
partclone.restore is a part of Partclone project. Partclone is a project like the well-known backup utility "Partition Image" a.k.a par- timage. Partclone provide utilities to back up used blocks and design for higher compatibility of the file system using supported library like e2fslibs. OPTIONS
-o, --output FILE Output FILE -O --overwrite FILE Output FILE, overwriting if exists --restore_row_file create special raw file for loop device -s, --source FILE Source FILE -L, --logfile FILE Log FILE -dX, --debug=X Set the debug level to X = [0|1|2] -C, --no_check Don't check device size and free space -X, --dialog Output message as Dialog Format -I, --ignore_fschk Ignore filesystem check --ignore_crc Ignore crc check error -F, --force Force progress -f, --UI-fresh Fresh times of progress -m, --max_block_cache The used block will be cache until max number -q, --quiet Disable progress message -v, --version Display partclone version -h, --help Display this help Examples: restore /dev/hda1 from hda1.img and display debug information. partclone.restore -d -s hda1.img -o /dev/hda1 restore image from clonezilla(split, gzip,) with stdin source cat sda1.ext3-ptcl-img.gz.a* > gunzip -c | partclone.restore -d -s - -o /dev/sda1 restore raw image from partclone.dd partclone.dd -d -c -s /dev/sda1 -o - | partclone.restore -d -s - -o /dev/sdb1 REPORTING BUGS
Report bugs to <thomas@nchc.org.tw> SUPPORT
You can get support at http://partclone.org AUTHOR
This manual page was written by Thomas Tsai <thomas@nchc.org.tw> partclone 0.2.48 Nov 2007 partclone.restore(8)
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy