10-20-2011
You only get to do bs=...G if you have GNU dd.
Advertised tape sizes are very often inflated. We don't know his tapes actually are 600GB, i.e. whether that means real gigabytes or drivemaker's gigabytes, uncompressed or with theoretical max compression, etc. The only way to be sure of that is to use the capacity in blocks as defined by the manufacturer.
Blocks versus bytes is grade-school math, 1024 bytes is two 512-byte blocks...
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Howdy,
I'm trying to tar some directories to tape and then extract them from tape on another machine. I was hoping someone could help me with the syntax of the tar commands. Both machines are running Solaris 8.
Need to get all files and directories under the following:
... (6 Replies)
Discussion started by: pmetal
6 Replies
2. UNIX for Dummies Questions & Answers
Hi !
i have to write a script that archivs homes not used since 3 years.
First, my script gathers the users that are concerned, using the following command :
ll -lt /home/*/.sh_history | egrep '2000|1999|1998|1997' | awk '{print $3}'
i obtain a list like this :
user_1
user_2
...... (3 Replies)
Discussion started by: tomapam
3 Replies
3. 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
4. UNIX for Dummies Questions & Answers
Has anyone you know ever used the -G --incremental option successfully with the tar command?
I'm not talking about the little -g --listed-incremental option. I don't want incremental backups. Just one differential backup which is what the -G is for. The -G command is supposed to make a single... (1 Reply)
Discussion started by: protienplant
1 Replies
5. Shell Programming and Scripting
Hi,
When I use -p option(preserve permissions) while creating tar archives, it throws error and creates archive in the name of 'p'. But without -p option I am able to create archive name as I mentioned.
how do I work it out with --preserve-permissions?
Any help is much appreciated.
... (3 Replies)
Discussion started by: learn more
3 Replies
6. Shell Programming and Scripting
Hi
I would like to use tar cmd in my script.
I have a variable with filenames, e.g. 1000 records and I would like to paste its values into tar cmd.
For this example I used three elements variable strings.
strings="file1.txt file2.txt file3.txt"
`tar cf file1.tar $strings`
Whether... (1 Reply)
Discussion started by: presul
1 Replies
7. Red Hat
Hi,
We will purchase redhat enterprise WS. We want to use Windows and Redhat in same machine. For this purpose , should we buy Redhat with Multi OS option? Or Is it just for virtualization..? (I couldnt be sure)
Regards... (3 Replies)
Discussion started by: titanic
3 Replies
8. UNIX for Advanced & Expert Users
Hi,
The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally.
I am currently considering something along the lines of:
tar --create --multi-volume --tape-length=nnnn <pathspec>
|... (0 Replies)
Discussion started by: MikeGM
0 Replies
9. UNIX for Dummies Questions & Answers
hello,
i want to use "-depth" in command "find" and want to exclude a directory.
the find command should work in HP-UX and Linux.
i see in the find man page:
-prune
If -depth is not given, true; do not descend the current directory.
If -depth is given, false; no effect.
-depth... (3 Replies)
Discussion started by: bora99
3 Replies
10. Shell Programming and Scripting
Hi, I'm working on HP-UX B.11.23 64bit. I tried to tar couple of directories but failed to do so.
$ tar -cvf tar_file_name -C /dir1 /dir2
the -C is for directories as mentioned in the man pages. But still unable to create a tar file having directories and sub-directories.
Requesting help in... (1 Reply)
Discussion started by: sam_bd
1 Replies
LEARN ABOUT HPUX
fscat_vxfs
fscat_vxfs(1M) fscat_vxfs(1M)
NAME
fscat_vxfs: fscat - cat a VxFS file system
SYNOPSIS
output-file] offset] length] block_size] special
DESCRIPTION
provides an interface to a VxFS snapshot file system, similar to that provided by invoked on the block or character special file of regular
VxFS file systems. works when executed on the special device of any VxFS file system.
On most VxFS file systems, the block or character special file for the file system provides access to a raw image of the file system to
back up the file system to tape. On a snapshot file system, access to the corresponding block or character special file provides little
useful information. provides a stream of bytes representing the file system snapshot. This datastream is written by default to standard
output, although the output-file option can be used to specify another destination. The datastream on standard output can be processed
several ways, such as in a pipeline, or written to a tape.
By default, the output is a stream of bytes that starts at the beginning of the file system and continues to the last byte. On a snapshot
file system, data is read from the file system using special ioctls on the mount point. On other VxFS file systems, data is read from the
specified special file. Unless otherwise specified, data is written to standard output.
All numbers entered as option arguments can have as a prefix to indicate octal, or as a prefix to indicate hexadecimal. A or can be
appended to indicate the value is in 512-byte blocks, a or to indicate the value is in kilobytes, an or to indicate the value is in
megabytes, or a or to indicate the value is in gigabytes. An appended letter can be separated from the number by a space, in which case
the letter and number should be enclosed in a set of quotes. For example:
All numbers entered as options must be in multiples of 512 bytes. For example, a value of 5713 as an offset is rejected.
Options
recognizes the following options:
Specify the output block size, in bytes.
block_size must be less than or equal to 1 megabyte.
Specify the VxFS file system type.
Specify an output file in which to write the datastream.
Specify the transfer length, in bytes.
A length of includes the remainder of the file system after the specified offset.
Specify the starting offset in bytes.
Operands
recognizes the following operand:
special Name of the special device from which the VxFS file system is accessed.
Notes
Snapshot file systems are only available with the HP OnLineJFS product.
A snapshot file system cannot be written to.
A snapshot file system exists only as long as it is mounted; once unmounted, the special file no longer contains a snapshot file system.
When is run on a mounted VxFS snapshot, the content of free blocks (that is, blocks not allocated to any file or metadata) is undefined.
The content of free blocks can change after additional data is written to the primary file system, but blocks associated with files always
display the content they had when the snapshot was created.
does not work with Storage Checkpoints.
SEE ALSO
dd(1), fs_vxfs(4), vxfsio(7).
fscat_vxfs(1M)