1GPGTAR(1) GNU Privacy Guard 2.2 GPGTAR(1)
2
3
4
6 gpgtar - Encrypt or sign files into an archive
7
9 gpgtar [options] filename1 [ filename2, ... ] directory1 [ directory2,
10 ... ]
11
12
14 gpgtar encrypts or signs files into an archive. It is an gpg-ized tar
15 using the same format as used by PGP's PGP Zip.
16
17
19 gpgtar understands these options:
20
21
22
23 --create
24 Put given files and directories into a vanilla ``ustar'' ar‐
25 chive.
26
27
28 --extract
29 Extract all files from a vanilla ``ustar'' archive.
30
31
32 --encrypt
33 -e Encrypt given files and directories into an archive. This op‐
34 tion may be combined with option --symmetric for an archive that
35 may be decrypted via a secret key or a passphrase.
36
37
38 --decrypt
39 -d Extract all files from an encrypted archive.
40
41
42 --sign
43 -s Make a signed archive from the given files and directories.
44 This can be combined with option --encrypt to create a signed
45 and then encrypted archive.
46
47
48 --list-archive
49 -t List the contents of the specified archive.
50
51
52 --symmetric
53 -c Encrypt with a symmetric cipher using a passphrase. The default
54 symmetric cipher used is AES-128, but may be chosen with the
55 --cipher-algo option to gpg.
56
57
58 --recipient user
59 -r user
60 Encrypt for user id user. For details see gpg.
61
62
63 --local-user user
64 -u user
65 Use user as the key to sign with. For details see gpg.
66
67
68 --output file
69 -o file
70 Write the archive to the specified file file.
71
72
73 --verbose
74 -v Enable extra informational output.
75
76
77 --quiet
78 -q Try to be as quiet as possible.
79
80
81 --skip-crypto
82 Skip all crypto operations and create or extract vanilla ``us‐
83 tar'' archives.
84
85
86 --dry-run
87 Do not actually output the extracted files.
88
89
90 --directory dir
91 -C dir Extract the files into the directory dir. The default is to
92 take the directory name from the input filename. If no input
93 filename is known a directory named ‘GPGARCH’ is used. For tar‐
94 ball creation, switch to directory dir before performing any op‐
95 erations.
96
97
98 --files-from file
99 -T file
100 Take the file names to work from the file file; one file per
101 line.
102
103
104 --null Modify option --files-from to use a binary nul instead of a
105 linefeed to separate file names.
106
107
108 --utf8-strings
109 Assume that the file names read by --files-from are UTF-8 en‐
110 coded. This option has an effect only on Windows where the ac‐
111 tive code page is otherwise assumed.
112
113
114 --openpgp
115 This option has no effect because OpenPGP encryption and signing
116 is the default.
117
118
119 --cms This option is reserved and shall not be used. It will eventu‐
120 ally be used to encrypt or sign using the CMS protocol; but that
121 is not yet implemented.
122
123
124
125 --set-filename file
126 Use the last component of file as the output directory. The de‐
127 fault is to take the directory name from the input filename. If
128 no input filename is known a directory named ‘GPGARCH’ is used.
129 This option is deprecated in favor of option --directory.
130
131
132 --gpg gpgcmd
133 Use the specified command gpgcmd instead of gpg.
134
135
136 --gpg-args args
137 Pass the specified extra options to gpg.
138
139
140 --tar-args args
141 Assume args are standard options of the command tar and parse
142 them. The only supported tar options are "--directory",
143 "--files-from", and "--null" This is an obsolete options because
144 those supported tar options can also be given directly.
145
146
147 --tar command
148 This is a dummy option for backward compatibility.
149
150
151 --version
152 Print version of the program and exit.
153
154
155 --help Display a brief help page and exit.
156
157
159 Encrypt the contents of directory ‘mydocs’ for user Bob to file
160 ‘test1’:
161
162 gpgtar --encrypt --output test1 -r Bob mydocs
163
164
165 List the contents of archive ‘test1’:
166
167 gpgtar --list-archive test1
168
169
170
172 The program returns 0 if everything was fine, 1 otherwise.
173
174
175
177 gpg(1), tar(1),
178
179 The full documentation for this tool is maintained as a Texinfo manual.
180 If GnuPG and the info program are properly installed at your site, the
181 command
182
183 info gnupg
184
185 should give you access to the complete manual including a menu struc‐
186 ture and an index.
187
188
189
190
191
192GnuPG 2.3.3 2021-10-06 GPGTAR(1)