restore command retrieves files from an Arius repository in Azure Blob Storage and reconstructs them locally. It operates in two distinct modes: pointer synchronization (default) and full binary download.
Usage
Parameters
Positional
One or more directories or files to restore. Accepts relative or absolute paths. Defaults to the current directory, which restores everything under
LocalRoot.- If a directory is provided, all pointer files within it (recursively) are restored.
- If a file path is provided, only that specific file is restored.
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 decrypt blobs. Must match the passphrase used during archival. Short flag:
-p.Root directory for the restore operation. Short flag:
-r. Pointer files are resolved relative to this directory. Defaults to the current working directory.Download and restore the actual binary content of files. Without this flag, only pointer file synchronization is performed — no binary data is downloaded.If a file is stored in the Azure Archive tier, the first run with
--download triggers rehydration. The actual download completes only after rehydration finishes (typically around 15 hours). Run the command again after that window to complete the download.When
--download is used, also create the corresponding .pointer.arius files alongside the restored binaries.Complete example
Synchronize pointer files only (no binary download):Archive tier rehydration
Files stored in the Azure Archive tier are offline and cannot be downloaded directly. The restore process for these files is two steps:Two-step restore for Archive tier blobs:
- Run
arius restore --download. Arius detects that the blobs are in Archive tier and initiates rehydration for each file. No binary data is downloaded yet. - Wait approximately 15 hours for Azure to complete rehydration.
- Run
arius restore --downloadagain. Arius downloads the now-online blobs and writes them to disk.
Pointer synchronization
Runningrestore without --download performs a pointer-only synchronization between the remote repository state and the local filesystem:
- Pointer files (
.pointer.arius) that exist in the repository but are missing locally are created. - Pointer files that exist locally but are no longer present in the repository are removed.
- No binary file data is transferred.
Restore result output
After a successful run, Arius prints a summary of the operation:| Metric | Description |
|---|---|
ChunksDownloaded | Number of binary chunks downloaded from Azure. |
BytesDownloaded | Total bytes downloaded from Azure. |
BytesWrittenToDisk | Total bytes written to local disk after decryption and decompression. |
TotalTargetFiles | Total number of files targeted by the restore. |
FilesWrittenToDisk | Number of files successfully written to disk. |
VerifiedFilesAlreadyExisting | Number of files that were already present locally and verified correct. |
Rehydrating | List of files still rehydrating from Archive tier (not downloaded in this run). |
Warnings | List of non-fatal warning messages generated during the run. |