47 Commits

Author SHA1 Message Date
7a494cb65a fix(script): Correctly assign default values if unset or empty (#1) 2023-03-07 01:02:43 +01:00
2fadc427c5 refactor(script): Define color codes just once (#1) 2023-03-07 01:01:55 +01:00
ce93c8558e refactor(script): Get variables first then define an operation suffix (#1) 2023-03-07 01:01:20 +01:00
4553bee760 fix(script): Run while loop through different file descriptor for easier trap-debugging (#1) 2023-03-07 00:05:47 +01:00
39490c3d7a refactor(hook): Allow pkg list of up to 30 chars length (#1) 2023-03-07 00:04:34 +01:00
776480a9a3 refactor(script): Reuse the same pkg name separator in a var (#1) 2023-03-07 00:04:00 +01:00
c9fcdb5b29 refactor(script): Differentiate between user-defined and internal vars (#1) 2023-03-07 00:03:01 +01:00
3277e7a31a docs(script): pkg name regex is encapsulated in parentheses (#1) 2023-03-07 00:01:45 +01:00
9a92e99c6a docs(hook): We use multiple hook files (#1) 2023-03-07 00:00:18 +01:00
ed15631ad2 fix(script): Fix var reference (#1) 2023-03-06 03:15:48 +01:00
85a7fb66be fix(script): Fix var reference (#1) 2023-03-06 03:10:01 +01:00
41c30d5971 fix(script): Don't reinitialize max_dataset_name_length (#1) 2023-03-06 03:06:19 +01:00
9437dea225 fix(script): Fix date format (#1) 2023-03-06 03:02:02 +01:00
35f572fe97 fix(script): fix if clause (#1) 2023-03-06 02:55:21 +01:00
70145d5897 feat(script): Add dry-run functionality (#1) 2023-03-06 02:47:11 +01:00
05a9f22b01 feat(script): Implement retention for old snapshots (#1) 2023-03-06 02:40:16 +01:00
f5956063a9 feat(script): Identify snaps in current chain (#1) 2023-03-06 02:39:51 +01:00
12207a1376 feat(script): Add successful snapshot datasets to array (#1) 2023-03-06 02:39:21 +01:00
2a256272d8 fix(conf): Use vars for severity names (#1) 2023-03-06 02:38:39 +01:00
ba2c7040a8 fix(conf): Keep 15 trivial snapshots (#1) 2023-03-06 02:38:17 +01:00
6f92693c0f feat(script): Do snapshots and talk about it (#1) 2023-03-06 02:15:52 +01:00
aa60a863d8 refactor(script): Reuse date_string instead of regenerating it (#1) 2023-03-06 02:15:28 +01:00
0222cc9649 refactor(script): Name normal msgs "info" (#1) 2023-03-06 02:14:47 +01:00
e7c913c4db feat(script): Limit length of package name list (#1) 2023-03-06 02:07:54 +01:00
7747e9bdc3 feat(script): Print warning and exit gracefully if snapshot name would be too long (#1) 2023-03-06 02:04:37 +01:00
f8592c215a feat(script): Add colored print (#1) 2023-03-06 02:03:54 +01:00
f5bb694768 feat(conf): Find how long a dataset name will be (#1) 2023-03-06 01:24:13 +01:00
8e8be69f12 feat(conf): Make snapshot name components configurable (#1) 2023-03-06 01:21:56 +01:00
60b3a92abb feat(script): Allow snapping only local datasets (#1) 2023-03-06 00:57:02 +01:00
673fb15b46 refactor(script): Explain pacman-zfs-snapshot.conf last (#1) 2023-03-06 00:40:08 +01:00
36cd7ea16d feat(script): Introduce dry-run option (#1) 2023-03-06 00:39:18 +01:00
8fbf16bda0 docs(script): Explain space.quico:auto-snapshot ZFS property (#1) 2023-03-06 00:36:20 +01:00
7427d8477f feat(script): List all snappable datasets (#1) 2023-03-06 00:32:58 +01:00
8dca85c98f refactor(script): Local instead of global var (#1) 2023-03-06 00:16:00 +01:00
b1249d6a40 feat(script): Generate list of affected pkgs on one line (#1) 2023-03-06 00:15:23 +01:00
188e3481af feat(script): Define severity based on affected pkgs (#1) 2023-03-06 00:14:47 +01:00
b128b5f2ae feat(script): Catch install, remove, upgrade operation type from pacman (#1) 2023-03-06 00:14:09 +01:00
740f4bd36a feat(conf): Limit snapshot name length (#1) 2023-03-06 00:13:33 +01:00
6a666c5c8e refactor(script): Don't use zfs-auto-snapshot, but add jq (#1) 2023-03-06 00:12:50 +01:00
1e56f28dc8 feat(hook): Use separate hook per transaction type (#1) 2023-03-05 22:19:12 +01:00
0e9290a727 docs(script): Trailing dot (#1) 2023-03-05 22:18:12 +01:00
ae42f40f46 refactor(script): For symlinks you're going to need sudo (#1) 2023-03-05 22:17:53 +01:00
52bc1ba132 refactor(script): Opposite of important is trivial (#1) 2023-03-05 22:17:21 +01:00
136ec7875e docs(conf): Add a note to ourselves for final defaults (#1) 2023-03-05 22:16:29 +01:00
1113a32888 feat(hook): Use separate hook per transaction type (#1) 2023-03-05 22:15:55 +01:00
f7f6d71250 feat(meta): Initial commit (#1) 2023-03-05 08:15:16 +01:00
7ea829aacf Initial commit 2023-03-05 05:28:10 +00:00