This is a Bash script for managing ZFS snapshots. It allows you to create and remove snapshots easily.
- Linux with ZFS installed.
- Sufficient permissions to run
zfs
commands withsudo
.
-
Clone or download this repository.
-
Make the script executable:
chmod +x snapDisk
$ ./snapDisk -c | --create
$ ./snapDisk -l | --list
Available snapshots:
0. rpool/USERDATA@2023-10-10_22:49:18
1. rpool/USERDATA/username_b56lyv@2023-10-10_22:49:11
$ ./snapDisk -r | --remove 0 1
Snapshot removed: rpool/USERDATA@2023-10-10_22:49:18
Snapshot removed: rpool/USERDATA/username_b56lyv@2023-10-10_22:49:11