archive
Evaluates retention policies for all classified documents and archives those that have exceeded their retention period. Supports move, delete, and keep actions.
Usage
bash
unsterwerx archive [OPTIONS]
Options
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--dry-run | flag | Show what would be archived without doing it |
Examples
Preview archival actions
bash
unsterwerx archive --dry-run
Archive Dry Run
══════════════════════════════════
Processed: 256
Moved: 0
Deleted: 0
Skipped: 241
Retention: 15
Freed: 0 B
══════════════════════════════════
Execute archival
bash
unsterwerx archive
Notes
- Always run
--dry-runfirst to review what will be archived. - Documents under legal hold or marked as immutable are never archived.
- Signed documents are always treated as immutable with legal hold, regardless of policy.
- The
Retentioncount shows documents whose retention period has not yet expired. - The
Skippedcount includes documents without applicable retention policies. - Archived originals are moved to the
archive/directory within the data directory. - Use
unsterwerx rules policiesto view active retention policies.