Initdb

Usage

hs initdb [-h] [--truncate | --vacuum | --rotate | --backup PATH] [--yes]

Description

Initialize database.

For SQLite this happens automatically. See also --initdb for the hs cluster command.

The available special actions are mutually exclusive. The --rotate operation migrates completed tasks to the next database partition, and applies a special purpose part:N tag to the new partition and remaining tasks.


Actions

-v, --vacuum

Vacuum an existing database.

-b, --backup PATH

Vacuum into backup file (SQLite only).

-r, --rotate

Rotate completed tasks to new database (SQLite only).

-t, --truncate

Truncate database (task metadata will be lost).

Options

-y, --yes

Auto-confirm action (default will prompt).