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