Skip to content

backups

Run Rustic backups, inspect snapshots, verify integrity, and manage credentials.

Syntax: outfitting-manager backups <subcommand> [flags]

backups runs Rustic on macOS, Windows, and Linux using the selected profile and native credentials. See How backups work for behavior, Prerequisites to check what you need, or Set up backups to configure a profile.

Job arguments use the name from a configured Rustic [[backup.snapshots]] entry. There are no built-in platform job names. The examples use project-data and photos from the setup guide; replace them with names shown by backups doctor for your selected profile.

Every backup command requires local [backups.credentials] with exactly access-key, secret-key, repository-password, and alert-token mapped to distinct, nonblank, control-free service names. There are no defaults. Set the mapping directly or import backups.credentials from outfitting.json; source refresh alone does not import it. Also configure backups.alertUrl with a canonical HTTPS /v1/alerts endpoint or explicitly set backups.alertsDisabled = true without alertUrl. Canary’s credential policy owns the sender and all recipients; local address fields are no longer supported. Incomplete settings fail before native credential access. See setup for configuration.

doctor

Syntax: outfitting-manager backups doctor

Show resolved configuration, hostname, backup interval, repository configuration, ordered job names, job policies, retention defaults, sources, state directory, log directory/file, credential service names, schedule label, and alert configuration without accessing the repository or native credentials. Secret values are never printed. Source bindings come from the selected profile’s paths table; see path configuration.

outfitting-manager backups doctor

status

Syntax: outfitting-manager backups status

Read local backup receipts and print current outcomes, timestamps, and recovery anchors without accessing native credentials or the remote repository.

outfitting-manager backups status

run

Syntax: outfitting-manager backups run [--job <job>]

Run backup jobs immediately. By default, all jobs in the active profile are executed. Does not perform retention or pruning.

# Run all backup jobs
outfitting-manager backups run

# Run one job
outfitting-manager backups run --job project-data
Option Description
--job <job> Run one configured job by its Rustic snapshot name. Use doctor to see names; there are no built-in platform job lists.

run-due

Syntax: outfitting-manager backups run-due

Run backup jobs that are currently due and perform a weekly repository integrity check if due. Jobs are due once per day after 10:00 on macOS, 09:00 on Windows, or 00:00 on Linux, or once per slot when the profile sets intervalHours. Weekly checks run after Sunday 15:00.

outfitting-manager backups run-due

snapshots

Syntax: outfitting-manager backups snapshots [--job <job>]

List repository snapshots for this host, optionally filtered by job.

# List all snapshots for this host
outfitting-manager backups snapshots

# List snapshots for a specific job
outfitting-manager backups snapshots --job photos
Option Description
--job <job> Filter snapshot results by a configured Rustic snapshot name.

check

Syntax: outfitting-manager backups check [--read-data]

Check repository metadata. Use --read-data to also verify file data packs.

# Check repository metadata
outfitting-manager backups check

# Check metadata and all file data packs
outfitting-manager backups check --read-data
Option Description
--read-data Verify file data packs in addition to metadata. Takes longer to run.

maintenance

Syntax: outfitting-manager backups maintenance [--apply] [--acknowledge-history]

Preview or apply snapshot retention and pruning. By default, previews planned snapshot deletions while protecting accepted recovery anchors. Use --apply to apply retention and run two-phase pruning.

Retention inherits Rustic [forget] with optional per-job Outfitting counter overrides. Overlapping job-identity tags block retention. Receipts for removed jobs block --apply until reconciled; --acknowledge-history does not bypass these safeguards.

# Preview retention changes (dry run)
outfitting-manager backups maintenance

# Apply retention policy and prune data
outfitting-manager backups maintenance --apply

# Apply retention when unmanaged historical snapshots exist
outfitting-manager backups maintenance --apply --acknowledge-history
Option Description
--apply Apply retention policies and execute two-phase pruning (prune --max-unused 10%).
--acknowledge-history Required with --apply if unmanaged historical snapshots exist in the repository that are not saved locally.

accept

Syntax: outfitting-manager backups accept <job> <snapshot-id>

Approve a backup candidate whose file count or processed bytes shrank by more than 50% compared to the previous anchor. Candidates flagged as review-required must be accepted before serving as parent snapshots or recovery anchors.

outfitting-manager backups accept project-data 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
Argument Description
<job> The configured Rustic snapshot name associated with the candidate.
<snapshot-id> The 64-character hexadecimal snapshot ID saved in the receipt.

restore

Syntax: outfitting-manager backups restore <job> <snapshot-id> <destination>

Restore a snapshot into a new directory. The destination path must not already exist and cannot overlap any backup source path.

outfitting-manager backups restore project-data 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef ~/Desktop/restored-project-data
Argument Description
<job> The configured Rustic snapshot name to restore.
<snapshot-id> The snapshot ID to restore.
<destination> Target directory for restored files. Must not exist.

secrets

Manage backup credentials in macOS Keychain, Windows Credential Manager, or the Linux Secret Service. Logical names resolve through local backups.credentials; values stay in the native store under the scheduled user’s account, not in config.

secrets set

Syntax: outfitting-manager backups secrets set <name>

Store a credential interactively in the native credential store. Prompts for the value with password masking and requires confirmation.

outfitting-manager backups secrets set repository-password
Argument Description
<name> Credential name: access-key, secret-key, repository-password, or alert-token.

secrets check

Syntax: outfitting-manager backups secrets check

Verify required credentials in the native store without printing their values. With alerts enabled, check all four. With backups.alertsDisabled = true, check only the three repository credentials and never look up alert-token.

outfitting-manager backups secrets check

schedule

Syntax: outfitting-manager backups schedule --binary <path>

Print a LaunchAgent property list (macOS), Task Scheduler XML (Windows), or a systemd user service and hourly timer (Linux) configured to invoke outfitting-manager backups run-due using the specified executable path. The command is print-only and does not install schedules.

Both use the selected config file and profile to resolve source paths at run time. Newly generated macOS LaunchAgents put stdout/stderr in backups.logDirectory, or ~/Library/Logs by default. Create that directory before loading the LaunchAgent. Existing installed schedules retain their captured output paths until explicitly replaced.

The macOS label defaults to dev.outfitting.backups.<selected-profile>. Override it with local backups.scheduleLabel, matching [A-Za-z0-9][A-Za-z0-9._-]{0,254}. This only affects generated XML, not installed schedules or live labels. On Linux, the label names the .service and .timer units. Windows task naming remains the registration caller’s responsibility. The local override does not invalidate the source cache or change repository hashes, receipts, or locks.

# Generate macOS LaunchAgent XML
outfitting-manager backups schedule --binary ~/.local/bin/outfitting-manager

# Generate Linux systemd user units
outfitting-manager backups schedule --binary ~/.local/bin/outfitting-manager

# Generate Windows Task Scheduler XML
outfitting-manager backups schedule --binary "C:\Users\username\AppData\Local\Programs\OutfittingManager\outfitting-manager.exe" --launcher "C:\Users\username\AppData\Local\rustic-backup\run-hidden.js"
Option Description
--binary <path> Path to the installed outfitting-manager executable to run on schedule.
--launcher <path> Windows only, required. Absolute path to the hidden launcher that starts pwsh.exe without a window and returns its exit code.

Global options

All backups subcommands accept the shared --profile flag:

Option Description
--profile <profile> Select an independent backup profile from config.toml. Defaults to the configured backup profile.

Platform availability

Platform Available jobs Native credential store Schedule type
macOS Named snapshots in the selected Rustic profile macOS Keychain LaunchAgent
Windows Named snapshots in the selected Rustic profile Windows Credential Manager Task Scheduler
Linux Named snapshots in the selected Rustic profile Secret Service (libsecret) systemd timer
Navigation

Type to search…

↑↓ navigate↵ selectEsc close