07-13-2011
Thanks Jim, Actually - it is a binary file. I don't need ssh since its just transferring the data to a shared directory, which I can access just like a normal dir Here is my existing command: taperead -b 1048576 > tape.img Should I do something like this: taperead -b 1048576 > tape.img & tail -f tape.img > /volumes/shared/tape.img What if the tape.img file doesn't yet exist when the tail command is executed? The tape drive takes a little time to configure itself before it starts restoring the data
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there
In my organisation we have a solaris network with /home being automounted from /export/home on a central file server (usual stuff) however, the guy who originally set this up only allocated 3gb to /export/home and now we are really struggling for space. I have a new 18gb disk installed... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
2. Filesystems, Disks and Memory
Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the original one!
... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
3. UNIX for Dummies Questions & Answers
I have a zipped file that is ~ 10GB. I tried tarring it off to a tape, but I receive:
tar: <filename> too large to archive. Use E function modifier.
The file is stored on a UFS mount, so I was unable to use ufsdump.
What other options do I have? (I don't have a local file system large... (3 Replies)
Discussion started by: FredSmith
3 Replies
4. AIX
Hi All
I am trying to copy files present in a partition (server 2) which is mounted to a different server (server 1) as tape drive is connected to it. I ran the below command to copy files within a partition:
svr01:root:/sunfileserver> tar -cvf *
a <foldername>/<filename>/<filename>
a... (4 Replies)
Discussion started by: vathsan
4 Replies
5. UNIX for Dummies Questions & Answers
We have 3 Unix servers all running SVR4 Unix 1.4. I have no problems copying files to and from 2 of the servers using either the rcp command or ftp but when i come to transfer large files to the third server the copy gives up part way through and crashes this server. Copying smaller files using RCP... (7 Replies)
Discussion started by: coatesd
7 Replies
6. Shell Programming and Scripting
Hi,
I have a process which duplicates files for different environments. As the files arrive, my script (korn shell) makes copies of them (giving a unique name) and then renames the original file so that my process won't get triggered again.
I don't like it either, but it's what we were told to... (4 Replies)
Discussion started by: GoldenEye4ever
4 Replies
7. UNIX for Dummies Questions & Answers
I have a large file that I append entries to the end of every few seconds. Its grown to >150MB. Its basically a log file but a perl script is writing to it. I need to make a copy of it to a new directory. I realize the latest entries occuring while the copy is taking place will not be recorded... (1 Reply)
Discussion started by: lforum
1 Replies
8. Shell Programming and Scripting
Hi All,
I have a big file which looks like this:
abc 34.32
cdf 343.45
computer 1.34
ladder 2.3422
I have some 100000 .TXT files which look like this:
computer
cdf
align
I have to open each of the text files and read the words from the text files. Then I have to look into that... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
9. UNIX for Dummies Questions & Answers
I am using a 4mm tape to backup my Unix system. However, I wanted to make a copy all of the files and archive headers (or just the archive headers if that's possible) created on one of my tapes to another 4mm tape. I only have one tape drive. Is there a command that will complete such task? ... (1 Reply)
Discussion started by: acoco
1 Replies
10. Shell Programming and Scripting
Hello,
I'm new to this forum and like to first of all say hello to everyone.
I've got a really annoying problem at the moment.
I'm trying to rsync some files (about 200MB with one file of 120MB) from a Raspberry PI with raspbian to a debian server via rsync.
This procedure is stored in a... (3 Replies)
Discussion started by: wex_storm
3 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)