Commit Graph

31 Commits

Author SHA1 Message Date
Dave Eddy eb9351b711 bump version in code 2022-06-17 02:12:02 -04:00
Dave Eddy 89b9c8a416 validate datasets exist before running
- this allows for early exit as well as better error messaging
2022-06-12 15:05:07 -04:00
Dave Eddy 701762f1ec bump version 2022-06-12 14:34:55 -04:00
Ryan Petschek a9d24fc81a
Allow snapshot datasets to contain spaces (#18)
Previously, the `read -r` command ignored content after the first space in a dataset/snapshot name. For example, when trying to remove `MyPool/Media/TV Shows@snapshot-name`, the program would try to instead destroy `MyPool/Media/TV` which (probably) doesn't exist and is a dataset as opposed to a snapshot. This change should be safe because the `zfs list` command will not return any extra information after the creation time, space used, and snapshot name, in that order.
2022-06-12 14:33:29 -04:00
Dave Eddy f1be6dc83d rearrange zpool args, style 2021-12-04 17:37:24 -05:00
Dave Eddy 547d01009e put binary check below argument parsing 2021-12-04 12:31:09 -05:00
Dave Eddy 7867fc3d07 use posix compatible `command -v` instead of `type -P` 2021-12-04 12:30:21 -05:00
Dave Eddy 555988063b bump v1.4.0, fixes #15 and #12 2021-12-04 12:28:46 -05:00
Dave Eddy 198ba41245 add more robust code to get epoch time, fixes #13 2021-12-04 12:23:05 -05:00
Dave Eddy e8e035c9a2 accidently left in testin code 2021-12-01 15:47:55 -05:00
Dave Eddy 5c3f3d934f clean up docs, add docs for `-l` 2021-11-30 23:05:41 -05:00
Dave Eddy e4ba772f2c add -l for "list" mode, '-q' now fully squelches stdout 2021-11-30 22:55:57 -05:00
Dave Eddy b5f0f8f097 total snapshots and size before running 2021-11-30 13:16:06 -05:00
Dave Eddy 3754b8f063 only print status line if ! quiet 2021-11-28 13:43:13 -05:00
Dave Eddy 6e3891ddd1 show snapshot size and number of snapshots processed 2021-11-27 19:37:07 -05:00
Dave Eddy 68e65a66a3 bump to v1.3.0 2021-11-27 19:18:19 -05:00
Dave Eddy 482420faba add -R option for recursive deleting 2021-11-27 19:17:32 -05:00
Dave Eddy 975ed41681 bump to v1.2.0 2021-11-27 18:58:45 -05:00
lepokle 1502ce3c80
Support inverting of prefix/suffix match (#17) 2021-11-27 18:53:51 -05:00
Dave Eddy 06c93f7b83 fix indentation 2020-02-20 17:29:27 -05:00
Csaba Lehoczki 64b4a9b379 Add zfs binary check 2020-02-13 17:20:17 +01:00
Dave Eddy d10b865f23 bump 2019-12-16 14:09:54 -05:00
Andrew J. Hesford e7aa72160f Support suffix matching in the same style as prefix matching. 2019-12-16 11:19:53 -05:00
Dave Eddy 2a01496c41 bump 2018-12-14 13:26:45 -05:00
Dave Eddy 2b417b46a5 add version number, -V to print it 2018-11-12 13:07:26 -05:00
Henrik Riomar b307f94a70 add quiet option, useful when running from cron 2018-10-24 08:46:27 +02:00
Dave Eddy 392bc97aa0 support dataset names with spaces in them, fixes #1 2018-08-16 16:51:31 -04:00
Dave Eddy 1ac923d3ee usage 2015-11-23 00:22:28 -05:00
Dave Eddy 76b6c1fe10 cleanup 2015-11-21 23:40:22 -05:00
Dave Eddy 4a9fc6dc52 fix docs 2015-11-21 23:30:46 -05:00
Dave Eddy f0e745a5f5 Initial commit 2015-11-21 23:24:32 -05:00