09-13-2001
tar
hi,
1. i'm a beginner user for unix. i want to learn that how can i learn disk usage of tape device?
2. How can i remove a file or directory from the tape device??
Thanks, regards...
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. UNIX for Advanced & Expert Users
Hi All
Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks
I tried as -
- compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format.
- on VxWorks i have uncompressed it to .tar... (1 Reply)
Discussion started by: uday_01
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
5. Shell Programming and Scripting
HI,
if I have a tarfile called pmapdata.tar that contains
tar -tvf pmapdata.tar
-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt
-rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies
6. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
7. UNIX for Dummies Questions & Answers
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Discussion started by: vivien_chu
1 Replies
8. AIX
Quick question,
is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?)
sample:
/opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz
will the tar file backup.tgz also include backup.tgz ?
i tried... (5 Replies)
Discussion started by: filosophizer
5 Replies
9. AIX
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies
LEARN ABOUT DEBIAN
tgtimg
TGTIMG(8) TGTIMG(8)
NAME
tgtimg - Linux SCSI Target Framework Image File Utility
SYNOPSIS
tgtimg [-o --op <operation>] [-Y --device-type <device-type>] [-b --barcode <barcode>] [-s --size <size>] [-t --type <media-type>]
[-f --file <path>]
tgtimg --help
DESCRIPTION
Tgtimg is a utility to create and manage the image files used by the TGTD device emulation.
This command is used to initialize device image files with the additional metadata, such as barcode, list of blocks, total size, etc that
the TGTD emulation needs.
OPTIONS
-h, --help
Show a help screen and exit.
-o, --op {new|show}
Operation. Is either new to create a new image file or show to show the content of an existing image file.
-Y, --device-type <type>
This specifies the type of image file.
Supported device types are :
cd : to create media for a dvd device
disk : to create media for a disk device
tape : to create media for a tape device
-t, --type <media-type>
When creating a new image, this specifies the type of media to emulate. The available mediatypes depend on the type of the device.
Supported media types for cd devices are :
dvd+r : create a blank writeable DVD+R disk
Supported media types for disk devices are :
disk : create an empty disk
Supported media types for tape devices are :
data : create a normal data tape
clean : create a cleaning tape
worm : create a worm
-b, --barcode <barcode>
When creating a new image, this argument specifies the barcode to use with this image file. Backup application software often uses
barcodes to identify specific tapes. When emulating a VTL, make sure that all tape images use unique barcodes.
-s, --size <size>
When creating a new image, this specifies the size in megabytes for the virtual tape image.
-f, --file <path>
The filename of the image file.
EXAMPLES
To create a new 100MByte disk
tgtimg --op new --device-type disk --type disk --size 100 --file /data/hd001.raw
To create a new tape image
tgtimg --op new --device-type tape --barcode 12345 --size 100 --type data --file /data/tape001.img
To view the content of an existing image
tgtimg --op show --device-type tape --file /data/tape001.img
To create a new blank DVD+R image
tgtimg --op new --device-type cd --type dvd+r --file /data/dvd001.iso
SEE ALSO
tgtd(8), tgtadm(8), tgt-admin(8), tgt-setup-lun(8). http://stgt.sourceforge.net/
REPORTING BUGS
Report bugs to <stgt@vger.kernel.org>
04/04/2010 TGTIMG(8)