04-13-2012
Can you use walknet? i.e. take the external disc drive to the target computer.
10 More Discussions You Might Find Interesting
1. Solaris
I'm trying to tar a bunch of files off to a tape, but for one specific file (it is fairly large, roughly 10Gb) I get the error:
too large to archive
Does tar have a limit of the size of file it can write off to tape? I'm using SunOS 5.8.
Thanks!
-Fred (6 Replies)
Discussion started by: FredSmith
6 Replies
2. UNIX for Dummies Questions & Answers
If I have a directory /directory1 and want to tar and zip everything in it into a file new_tar.tar.gz on disk (not tape)
How can I do it?
I tried tar -cv /new_tar.tar /directory1/*
But I got an error: tar: /dev/rmt/0: No such device or address (4 Replies)
Discussion started by: FredSmith
4 Replies
3. UNIX for Advanced & Expert Users
Recently we brought up a Spectralogic 2K Tape Library that had been out of service for about 3 years to replace a DDS-4 tape drive unit as our main backup device.
Everything seemed to go fine but now I have run into a little problem.
System details:
FBSD 6.1
SpectraLogic 2K library with a... (1 Reply)
Discussion started by: thumper
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
How do I tar all but a specific set of files in a directory? Is it possible to use regular expressions in the tar command? I want to tar all files except those beginning with D. I tried this
tar -cvf files.tar ^
but this didn't work. Anyone any ideas.
Thanks (2 Replies)
Discussion started by: sirbrian
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all, my directory structure is as follows /a/b/c.
I would like to tar the /a directory including the subdirectories b and c.
i intend to use the command tar -cvfz a.tgz a/ My question is where do i execute the command? do i execute it at the '/' prompt or at '/a' prompt ? My concern at... (1 Reply)
Discussion started by: new2ss
1 Replies
6. UNIX for Advanced & Expert Users
Hi all. I was able to set up an IBM Ultrium LTO 4 tape drive to use iSCSI (using open-iscsi drivers) to communicate with Red Hat, but it's going really slow, maxing out in tar and dd tests at like 16 MB/s (using a block size of 128k). The thing is rated for 30MB/s. I feel like even though I have... (1 Reply)
Discussion started by: jeriryan87
1 Replies
7. Shell Programming and Scripting
I have a file that is 20 - 80+ MB in size that is a certain type of log file.
It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example:
The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies
8. 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
9. UNIX for Dummies Questions & Answers
How do I create individual tars of a all the directories in a directory? I have a directory called 'patients', each patient has a directory in the patients directory. I want to create tars such that each patient has their own tar file.
Thanks! (5 Replies)
Discussion started by: HappyPhysicist
5 Replies
10. Shell Programming and Scripting
The below bash will untar each tar.bz2 folder in the directory, then remove the tar.bz2.
Each of the tar.bz2 folders ranges from 40-75GB and currently takes ~2 hours to extract. Is there a way to speed up the extraction process?
I am using a xeon processor with 12 cores. Thank you :).
... (7 Replies)
Discussion started by: cmccabe
7 Replies
TAR(1) General Commands Manual TAR(1)
NAME
tar - tape archiver
SYNOPSIS
tar [ key ] [ name ... ]
DESCRIPTION
Tar saves and restores files on magtape. Its actions are controlled by the key argument. The key is a string of characters containing at
most one function letter and possibly one or more function modifiers. Other arguments to the command are file or directory names specify-
ing which files are to be dumped or restored. In all cases, appearance of a directory name refers to the files and (recursively) subdirec-
tories of that directory.
The function portion of the key is specified by one of the following letters:
r The named files are written on the end of the tape. The c function implies this.
x The named files are extracted from the tape. If the named file matches a directory whose contents had been written onto the tape,
this directory is (recursively) extracted. The owner, modification time, and mode are restored (if possible). If no file argument
is given, the entire content of the tape is extracted. Note that if multiple entries specifying the same file are on the tape, the
last one overwrites all earlier.
t The names of the specified files are listed each time they occur on the tape. If no file argument is given, all of the names on
the tape are listed.
u The named files are added to the tape if either they are not already there or have been modified since last put on the tape.
c Create a new tape; writing begins on the beginning of the tape instead of after the last file. This command implies r.
The following characters may be used in addition to the letter which selects the function desired.
0,...,7 This modifier selects the drive on which the tape is mounted. The default is 1.
v Normally tar does its work silently. The v (verbose) option causes it to type the name of each file it treats preceded by the
function letter. With the t function, v gives more information about the tape entries than just the name.
w causes tar to print the action to be taken followed by file name, then wait for user confirmation. If a word beginning with `y'
is given, the action is performed. Any other input means don't do it.
f causes tar to use the next argument as the name of the archive instead of /dev/mt?. If the name of the file is `-', tar writes
to standard output or reads from standard input, whichever is appropriate. Thus, tar can be used as the head or tail of a filter
chain Tar can also be used to move hierarchies with the command
cd fromdir; tar cf - . | (cd todir; tar xf -)
b causes tar to use the next argument as the blocking factor for tape records. The default is 1, the maximum is 20. This option
should only be used with raw magnetic tape archives (See f above). The block size is determined automatically when reading tapes
(key letters `x' and `t').
l tells tar to complain if it cannot resolve all of the links to the files dumped. If this is not specified, no error messages are
printed.
m tells tar to not restore the modification times. The mod time will be the time of extraction.
FILES
/dev/mt?
/tmp/tar*
DIAGNOSTICS
Complaints about bad key characters and tape read/write errors.
Complaints if enough memory is not available to hold the link tables.
BUGS
There is no way to ask for the n-th occurrence of a file.
Tape errors are handled ungracefully.
The u option can be slow.
The b option should not be used with archives that are going to be updated. The current magtape driver cannot backspace raw magtape. If
the archive is on a disk file the b option should not be used at all, as updating an archive stored in this manner can destroy it.
The current limit on file name length is 100 characters.
TAR(1)