LinuxCommandLibrary

rusnapshot

Rsync-based filesystem snapshot backup tool

TLDR

Create a snapshot using configuration file

$ sudo rusnapshot -c path/to/config.toml --cr
copy
List created snapshots
$ sudo rusnapshot -c path/to/config.toml -l
copy
Delete a snapshot by ID
$ sudo rusnapshot -c path/to/config.toml --del --id snapshot_id
copy
Delete all hourly snapshots
$ sudo rusnapshot -c path/to/config.toml -l -k 0 --clean --kind hourly
copy
Create a read-write snapshot
$ sudo rusnapshot -c path/to/config.toml --cr -r
copy
Restore a snapshot
$ sudo rusnapshot -c path/to/config.toml --id snapshot_id -r
copy

SYNOPSIS

rusnapshot [options]

DESCRIPTION

rusnapshot is a BTRFS snapshotting utility written in Rust. It provides automated snapshot creation, management, and restoration for BTRFS filesystems.
Configuration is done via TOML files specifying snapshot locations, retention policies, and schedules.

PARAMETERS

-c, --config file

Configuration file path
--cr
Create snapshot
-l, --list
List snapshots
--del
Delete snapshot
--id id
Specify snapshot ID
-r, --rw
Create read-write snapshot (or restore)
-k, --keep count
Number of snapshots to keep
--kind type
Snapshot kind (hourly, daily, etc.)

CONFIGURATION

config.toml

TOML configuration file specifying snapshot source paths, destination subvolume, retention policies, and snapshot kinds (hourly, daily, weekly, monthly).

CAVEATS

Requires BTRFS filesystem. Configuration file must be properly set up before use.

HISTORY

Written in Rust as a modern alternative to traditional BTRFS snapshot management tools like snapper.

SEE ALSO

btrfs(8), snapper(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community