archive command scans a local directory, encrypts and deduplicates its contents using AES-256, and uploads the resulting chunks to Azure Blob Storage. Each archived binary file is replaced by a lightweight .pointer.arius file that preserves the directory structure without storing the actual data locally.
Usage
Parameters
Positional
Path to the local root directory to archive. All files under this directory are scanned recursively.
Options
Azure Storage Account name. Short flag:
-n. If not provided as a flag, falls back to the ARIUS_ACCOUNT_NAME environment variable.Azure Storage Account key. Short flag:
-k. If not provided as a flag, falls back to the ARIUS_ACCOUNT_KEY environment variable.Azure Blob Storage container name. Short flag:
-c.Passphrase used to encrypt uploaded blobs with AES-256. Short flag:
-p. Store this securely — without it, data cannot be decrypted.Storage tier for uploaded blobs. Accepted values:
hot, cool, archive. The archive tier is the lowest-cost option but requires rehydration before download.Remove the original local binary files after a successful upload. The pointer file is always retained. Use with caution — removed files must be restored from Azure.
Complete example
Archive result output
After a successful run, Arius prints a summary table with local and remote statistics.| Metric | Description |
|---|---|
TotalLocalFiles | Total number of files scanned in the local root directory. |
BytesUploadedUncompressed | Raw size of files uploaded during this run before compression. |
BytesUploadedCompressed | Compressed size actually transferred to Azure. |
ExistingPointerFiles | Number of pointer files already present before the run. |
PointerFilesCreated | Number of new pointer files created during this run. |
PointerFileEntriesDeleted | Number of stale pointer file entries removed from the state. |
UniqueBinariesUploaded | Number of unique binary objects uploaded (deduplication applied). |
UniqueChunksUploaded | Number of unique chunks uploaded (deduplication applied). |
BinariesBeforeOperation | Total binaries in the repository before this run. |
BinariesAfterOperation | Total binaries in the repository after this run. |
ChunksBeforeOperation | Total chunks in the repository before this run. |
ChunksAfterOperation | Total chunks in the repository after this run. |
ArchivedSizeBeforeOperation | Total remote size before this run. |
ArchivedSizeAfterOperation | Total remote size after this run. |
NewStateName | Name of the updated state file written to Azure. |
FilesSkipped | Number of files skipped (e.g. already archived with matching hash). |
Warnings | List of non-fatal warning messages generated during the run. |
Notes
Arius performs file-level deduplication by default. Files with identical content are stored only once in the repository regardless of how many local copies exist.
The
ArchiveCommand also exposes advanced properties for programmatic use: HashingParallelism (default: processor count), UploadParallelism (default: min 4, processor count), and SmallFileBoundary (default: 1 MB). These are not exposed as CLI flags.