rusnapshot is a BTRFS snapshotting utility written in Rust. BTRFS (B-Tree File System) is a modern, feature-rich file system that is available on Linux. It is designed to provide advanced features such as snapshots, cloning, and subvolumes, making it well-suited for backup and data protection tasks.
rusnapshot is designed to make it easier to manage BTRFS snapshots by providing a simple and intuitive command-line interface. With rusnapshot, users can create and manage BTRFS snapshots, as well as schedule snapshots to be taken automatically at specified intervals.
Here are some of the features and capabilities of rusnapshot:
- Snapshot creation and deletion: rusnapshot allows users to create and delete BTRFS snapshots with ease. Users can specify the name of the snapshot, as well as the subvolume or path that they want to create a snapshot of.
- Snapshot management: rusnapshot provides commands for listing and managing BTRFS snapshots. Users can list all snapshots, show information about a specific snapshot, or delete snapshots that are no longer needed.
- Snapshot scheduling: rusnapshot makes it easy to schedule BTRFS snapshots to be taken automatically at specified intervals. Users can specify the interval at which they want to take snapshots, as well as the retention policy for old snapshots.
- Backup and restore: rusnapshot can be used to create backups of BTRFS subvolumes or paths, which can be stored on local or remote storage devices. Users can also restore backups from these devices using rusnapshot.
rusnapshot Command Examples
1. Create a snapshot using a config file:
# rusnapshot --config {{path/to/config.toml}} --cr
2. List created snapshots:
# rusnapshot -c {{path/to/config.toml}} --list
3. Delete a snapshot by ID or the name of the snapshot:
# rusnapshot -c {{path/to/config.toml}} --del --id{{snapshot_id}}
4. Delete all hourly snapshots:
# rusnapshot -c {{path/to/config.toml}} --list --keep{{0}} --clean --kind {{hourly}}
5. Create a read-write snapshot:
# rusnapshot -c {{path/to/config.toml}} --cr --rw
6. Restore a snapshot:
# rusnapshot -c {{path/to/config.toml}} --id{{snapshot_id}} --restore
Summary
Overall, rusnapshot is a useful tool for managing BTRFS snapshots and simplifying the process of data protection and backup on Linux systems. Its simple command-line interface and powerful features make it well-suited for both casual and advanced users. More information about rusnapshot, including installation instructions and usage examples, can be found on its GitHub repository at https://github.com/Edu4rdSHL/rusnapshot.