From ea8ac0113302c69e3a7ad79b70f9fbffbee5fa64 Mon Sep 17 00:00:00 2001 From: danyeet Date: Sat, 17 Apr 2021 23:01:12 +0300 Subject: [PATCH] rusnapshot: add page (#5776) --- pages/linux/rusnapshot.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/rusnapshot.md diff --git a/pages/linux/rusnapshot.md b/pages/linux/rusnapshot.md new file mode 100644 index 000000000..2b4481a5e --- /dev/null +++ b/pages/linux/rusnapshot.md @@ -0,0 +1,28 @@ +# rusnapshot + +> BTRFS snapshotting utility written in Rust. +> More information: . + +- Create a snapshot using a config file: + +`sudo rusnapshot --config {{path/to/config.toml}} --cr` + +- List created snapshots: + +`sudo rusnapshot -c {{path/to/config.toml}} --list` + +- Delete a snapshot by ID or the name of the snapshot: + +`sudo rusnapshot -c {{path/to/config.toml}} --del --id {{snapshot_id}}` + +- Delete all `hourly` snapshots: + +`sudo rusnapshot -c {{path/to/config.toml}} --list --keep {{0}} --clean --kind {{hourly}}` + +- Create a read-write snapshot: + +`sudo rusnapshot -c {{path/to/config.toml}} --cr --rw` + +- Restore a snapshot: + +`sudo rusnapshot -c {{path/to/config.toml}} --id {{snapshot_id}} --restore`