13 saves and restores file trees.
14 It is most often used to transport a tree of files from one
18 is a string that contains
19 at most one function letter plus optional modifiers.
20 Other arguments to the command are names of
21 files or directories to be dumped or restored.
22 A directory name implies all the contained
23 files and subdirectories (recursively).
25 The function is one of the following letters:
28 Create a new archive with the given files as contents.
31 Extract the named files from the archive.
32 If a file is a directory, the directory is extracted recursively.
33 Modes are restored if possible.
34 If no file argument is given, extract the entire archive.
35 If the archive contains multiple entries for a file,
39 List all occurrences of each
41 in the archive, or of all files if there are no
47 are appended to the archive.
53 Print the name of each file treated
54 preceded by the function letter.
57 give more details about the
61 Use the next argument as the name of the archive instead of
62 the default standard input (for keys
66 or standard output (for keys
72 Use the next (numeric) argument as the user id for files in
73 the output archive. This is only useful when moving files to
77 Use the next (numeric) argument as the group id for files in
81 Create archive in POSIX ustar format,
82 which raises the maximum pathname length from 100 to 256 bytes.
83 Ustar archives are recognised automatically by
85 when reading archives.
88 When extracting, ignore leading slash on file names,
89 i.e., extract all files relative to the current directory.
92 Modifies the behavior of
94 to set the mode and modified time
95 of each file to that specified in the archive.
98 can be used to copy hierarchies thus:
101 @{cd fromdir && tar cp .} | @{cd todir && tar xT}
104 .B /usr/local/plan9/src/cmd/tar.c
110 There is no way to ask for any but the last
111 occurrence of a file.
113 File path names are limited to
115 (256 when using ustar format).
117 The tar format allows specification of links and symbolic links,
118 concepts foreign to Plan 9: they are ignored.