LinuxCommandLibrary

rustic

Fast encrypted deduplicated backup tool

TLDR

Initialize repository

$ rustic init
copy
Create backup
$ rustic backup [path/to/backup]
copy
List snapshots
$ rustic snapshots
copy
Restore snapshot
$ rustic restore [snapshot_id] [target/]
copy
Forget old snapshots
$ rustic forget --keep-daily [7] --keep-weekly [4]
copy
Prune unused data
$ rustic prune
copy
Check repository
$ rustic check
copy
Mount repository
$ rustic mount [mountpoint/]
copy

SYNOPSIS

rustic [-r repository] [options] command [args]

DESCRIPTION

rustic is a fast backup tool written in Rust that is fully compatible with the restic repository format. It provides encrypted, deduplicated backups using AES-256 encryption with authenticated tags, ensuring data confidentiality and integrity at rest.
The tool uses content-defined chunking and deduplication so that only unique data chunks are stored, significantly reducing storage requirements for incremental backups. Multiple storage backends are supported including local filesystems, S3-compatible object storage, SFTP, and REST servers.
Retention policies specified through forget with keep rules (daily, weekly, monthly) automate snapshot cleanup. The prune command reclaims space by removing data chunks no longer referenced by any snapshot.

PARAMETERS

-r, --repo PATH

Repository location.
-p, --password PASS
Repository password.
--password-file FILE
Password file.
-v, --verbose
Verbose output.
--dry-run
Simulate only.

CONFIGURATION

~/.config/rustic/rustic.toml

Main configuration file defining default repository location, password source, backup paths, and retention policies.
RUSTIC_REPOSITORY
Environment variable specifying the default repository location.
RUSTIC_PASSWORD
Environment variable providing the repository password.

COMMANDS

init

Create repository.
backup
Create backup.
snapshots
List snapshots.
restore
Restore data.
forget
Remove snapshots.
prune
Remove unused data.
check
Verify integrity.

CAVEATS

Separate implementation from restic. Repository format compatible. Some features may differ.

HISTORY

Rustic was created as a Rust rewrite of restic for improved performance. It maintains compatibility with restic repositories.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community