rustic

package
v2.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package rustic provides shared Rustic runtime configuration.

Index

Constants

View Source
const CacheVolume = "arcane-rustic-cache"

CacheVolume persists Rustic's repository cache across ephemeral runtime containers.

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). Every run mounts the shared CacheVolume.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL