CoreyH
June 8, 2001, 12:42pm
1
I am trying to tar file to a local tape drive using tar cf /dev/rmt/0cn ./directory
The process appears to run and I can see activity on the tape drive, but, then I use tar t /dev/rmt/0cn but I do not see anything there.
I am running Solaris 8 on a 420R.
i dont see any option for a -t in tar.
did you mean to type
$tar -xvf /dev/rmt/0cn .
NAME
tar - create tape archives and add or extract files
SYNOPSIS
tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tar-
file ] [ exclude-file ] {-I include-file | -C directory
| file | file } ...
tar r [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] {-
I include-file | -C directory | file | file } ...
tar t [ BefFhiklnqvX [ 0-7 ] ] [ tarfile ] [ exclude-
file ] {-I include-file | file } ...
tar u [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] [ tarfile ]
file ...
tar x [ BefFhiklmnopqvwX [ 0-7 ] ] [ tarfile ] [
exclude-file ] [ file ... ]
PxT
June 8, 2001, 2:45pm
3
'tar -t' gives a table of contents of the tar file.
CoreyH -- Try this syntax:
tar -tvf /dev/rmt/0cn
Hi
I also use the same command tar -cvf /dev/rmt/0 to backup files on the tape drive and use the command tar -tvf /dev/rmt/0 to list the contents of the tar file. It works fine and has never given me problems
thanks pxt
ok ok im blind!!!!!!!!!!!!!!!!!!!!!!!!!
-2 karma for me
PxT
June 8, 2001, 4:27pm
6