Documentation
¶
Overview ¶
Module: main Purpose: Entry point for arcup CLI. Delegates all command registration and execution to the cmd package.
Dependencies:
- cmd: Cobra command tree and flag definitions
Directories
¶
| Path | Synopsis |
|---|---|
|
Module: cmd/restore Purpose: Implements the "restore" subcommand that lists available backups on the remote, allows selection by index, downloads the archive + sidecar, verifies checksum, and extracts to a destination.
|
Module: cmd/restore Purpose: Implements the "restore" subcommand that lists available backups on the remote, allows selection by index, downloads the archive + sidecar, verifies checksum, and extracts to a destination. |
|
internal
|
|
|
archive
Module: internal/archive Purpose: Defines the Archiver interface and a factory function to instantiate the correct archiver based on the chosen algorithm.
|
Module: internal/archive Purpose: Defines the Archiver interface and a factory function to instantiate the correct archiver based on the chosen algorithm. |
|
config
Module: internal/config Purpose: Defines the application configuration struct and provides loading from viper (which merges YAML file, env vars, and CLI flags).
|
Module: internal/config Purpose: Defines the application configuration struct and provides loading from viper (which merges YAML file, env vars, and CLI flags). |
|
meta
Module: internal/meta Purpose: Handles creation and parsing of sidecar .meta.json files that accompany each backup archive.
|
Module: internal/meta Purpose: Handles creation and parsing of sidecar .meta.json files that accompany each backup archive. |
|
retention
Module: internal/retention Purpose: Evaluates retention policies against a list of backup entries and determines which should be deleted.
|
Module: internal/retention Purpose: Evaluates retention policies against a list of backup entries and determines which should be deleted. |
|
retry
Module: internal/retry Purpose: Provides a generic retry mechanism with delay for robust execution of archiving and uploading tasks.
|
Module: internal/retry Purpose: Provides a generic retry mechanism with delay for robust execution of archiving and uploading tasks. |
|
scheduler
Module: internal/scheduler Purpose: Parses interval strings (cron expressions or Go durations) and provides a unified runner that executes a callback on schedule.
|
Module: internal/scheduler Purpose: Parses interval strings (cron expressions or Go durations) and provides a unified runner that executes a callback on schedule. |
|
upload
Module: internal/upload (rclone) Purpose: Implements the Uploader interface by shelling out to rclone.
|
Module: internal/upload (rclone) Purpose: Implements the Uploader interface by shelling out to rclone. |
|
webhook
Package webhook provides notification mechanisms for the arcup lifecycle.
|
Package webhook provides notification mechanisms for the arcup lifecycle. |
Click to show internal directories.
Click to hide internal directories.