Documentation
¶
Overview ¶
Package rustic provides shared Rustic runtime configuration.
Index ¶
Constants ¶
View Source
const DefaultImage = "ghcr.io/rustic-rs/rustic:v0.11.2"
DefaultImage is the official Rustic container image used by backup and recovery flows.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, dockerClient *client.Client, password string, command, environment []string, mounts []mount.Mount, networkMode container.NetworkMode) (string, error)
Run executes one Rustic command in an ephemeral container built from DefaultImage and returns its trimmed stdout. It is the single Rustic invocation contract, shared by the backup engine and the detached recovery helper; the image must already be present. The standard RUSTIC_* variables are appended to environment, and networkMode is applied verbatim ("" keeps the default network).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.