1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 12:55:28 +02:00
tldr/pages/linux/rusnapshot.md

29 lines
882 B
Markdown
Raw Normal View History

2021-04-17 23:01:12 +03:00
# rusnapshot
> BTRFS snapshotting utility written in Rust.
> More information: <https://github.com/Edu4rdSHL/rusnapshot>.
- Create a snapshot using a configuration file:
2021-04-17 23:01:12 +03:00
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --cr`
2021-04-17 23:01:12 +03:00
- List created snapshots:
`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:
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --del --id {{snapshot_id}}`
2021-04-17 23:01:12 +03:00
- Delete all `hourly` snapshots:
`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:
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --cr {{[-r|--rw]}}`
2021-04-17 23:01:12 +03:00
- Restore a snapshot:
`sudo rusnapshot {{[-c|--config]}} {{path/to/config.toml}} --id {{snapshot_id}} {{[-r|--restore]}}`