1TAR(1)                      General Commands Manual                     TAR(1)
2
3
4

NAME

6       tar  -  tape archiver
7

SYNOPSIS

9       tar [ key ] [ name ... ]
10

DESCRIPTION

12       Tar saves and restores files on magtape.  Its actions are controlled by
13       the key argument.  The key is a string of characters containing at most
14       one function letter and possibly one or more function modifiers.  Other
15       arguments to the command are file or directory names  specifying  which
16       files  are  to  be  dumped  or restored.  In all cases, appearance of a
17       directory name refers to the files and (recursively) subdirectories  of
18       that directory.
19
20       The  function  portion  of the key is specified by one of the following
21       letters:
22
23       r       The named files are written on the end  of  the  tape.   The  c
24               function implies this.
25
26       x       The named files are extracted from the tape.  If the named file
27               matches a directory whose contents had been  written  onto  the
28               tape,  this  directory  is (recursively) extracted.  The owner,
29               modification time, and mode are restored (if possible).  If  no
30               file  argument  is  given,  the  entire  content of the tape is
31               extracted.  Note that if multiple entries specifying  the  same
32               file are on the tape, the last one overwrites all earlier.
33
34       t       The  names  of  the  specified  files are listed each time they
35               occur on the tape.  If no file argument is given,  all  of  the
36               names on the tape are listed.
37
38       u       The  named  files  are added to the tape if either they are not
39               already there or have been modified since last put on the tape.
40
41       c       Create a new tape; writing begins on the beginning of the  tape
42               instead of after the last file.  This command implies r.
43
44       The  following  characters  may be used in addition to the letter which
45       selects the function desired.
46
47       0,...,7   This modifier selects the drive on which the tape is mounted.
48                 The default is 1.
49
50       v         Normally  tar does its work silently.  The v (verbose) option
51                 causes it to type the name of each file it treats preceded by
52                 the  function  letter.   With  the  t  function, v gives more
53                 information about the tape entries than just the name.
54
55       w         causes tar to print the action to be taken followed  by  file
56                 name,  then  wait  for user confirmation. If a word beginning
57                 with `y' is given, the action is performed. Any  other  input
58                 means don't do it.
59
60       f         causes  tar  to  use the next argument as the name of the ar‐
61                 chive instead of /dev/mt?.  If the name of the file  is  `-',
62                 tar  writes  to standard output or reads from standard input,
63                 whichever is appropriate. Thus, tar can be used as  the  head
64                 or  tail of a filter chain Tar can also be used to move hier‐
65                 archies with the command
66                         cd fromdir; tar cf - . | (cd todir; tar xf -)
67
68       b         causes tar to use the next argument as  the  blocking  factor
69                 for  tape  records. The default is 1, the maximum is 20. This
70                 option should only be used with raw  magnetic  tape  archives
71                 (See  f  above).   The block size is determined automatically
72                 when reading tapes (key letters `x' and `t').
73
74       l         tells tar to complain if it cannot resolve all of  the  links
75                 to  the files dumped. If this is not specified, no error mes‐
76                 sages are printed.
77
78       m         tells tar to not restore the  modification  times.   The  mod
79                 time will be the time of extraction.
80

FILES

82       /dev/mt?
83       /tmp/tar*
84

DIAGNOSTICS

86       Complaints about bad key characters and tape read/write errors.
87       Complaints if enough memory is not available to hold the link tables.
88

BUGS

90       There is no way to ask for the n-th occurrence of a file.
91       Tape errors are handled ungracefully.
92       The u option can be slow.
93       The  b  option  should  not  be used with archives that are going to be
94       updated. The current magtape driver cannot backspace raw  magtape.   If
95       the  archive  is on a disk file the b option should not be used at all,
96       as updating an archive stored in this manner can destroy it.
97       The current limit on file name length is 100 characters.
98
99
100
101                                                                        TAR(1)
Impressum