ha(1)

ha1

A small file archiver utility

Usage

ha <command> [<option><option> ...] archive [name ...]

Overview

After the program name comes a command name (single letter) and options (single letters, appended to the command name without a space).

Commands

a[sdqemr012]

Add files matching search pattern to archive.

e[aqty]

Extract files matching search pattern from archive.

x[aqty]

Extract files matching search pattern from archive using path information stored in archive.

l[f]

List files currently in archive.

d[q]

Delete files matching search pattern from archive. If archive does not contain any files after deletion it is removed.

f[sdqemr012]

Freshen files in archive. All files matching search pattern and newer than version already in archive are updated to archive.

u[sdqemr012]

Update files to archive. All files matching search pattern that are newer than version already in archive or are not yet in archive are updated to archive.

t[q]

Test files in archive.

Options

0,1,2

Try compression method #. More than one can be specified.

Methods are:
0-CPY Simple copying of files.
1-ASC Default method using sliding window dictionary followed by arithmetic
coder. Offers quite good compression on wide variety of file types.
2-HSC Compression method based on finite context model and arithmetic
coder. Quite slow for binary data, but offers very good compression
especially for longer text files.

y

Assume answer yes on all questions.

t

Touch files when extracting. Sets file times to current machine time.

r

Recurse through subdirectories while searching for files matching search pattern.

f

Full listing of stored file information.

m

Move files when archiving. Files are removed from disk after they are successfully written to archive.

a

Set system specific file attributes when extracting files.

s

Find special files when archiving.

e

Do not store pathname information.

q

Quiet operation.

d

Make separate entries for directories. Saves information about empty directories, directory attributes etc. in archive.

Releases

Unchanged in 3 releases since Debian 5.0 (Lenny).

  1. 5.0–7

Author

This manual page was written by Mikhail Gusarov <[email protected]> for Debian GNU/Linux system (but may be used by others).

From ha 0.999p+dfsg-3 in Debian 7 (Wheezy). Parsed by carta from the page's man source.