2025-03-14 21:59:59 -06:00
|
|
|
# rusnapshot
|
|
|
|
|
|
|
|
|
|
> BTRFS snapshotting utility written in Rust.
|
|
|
|
|
> More information: <https://github.com/Edu4rdSHL/rusnapshot>.
|
|
|
|
|
|
|
|
|
|
- Create a snapshot using a configuration file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --cr`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List created snapshots:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} {{[-l|--list]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete a snapshot by ID or the name of the snapshot:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --del --id {{snapshot_id}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete all `hourly` snapshots:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} {{[-l|--list]}} {{[-k|--keep]}} {{0}} --clean --kind {{hourly}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a read-write snapshot:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --cr {{[-r|--rw]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Restore a snapshot:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --id {{snapshot_id}} {{[-r|--restore]}}`
|