Commit Briefs

0ae9f8db3a Benjamin Linskey

Bump version to 2.0 and add copyright year (main, tags/v2.0)


1b1f91ad4b Benjamin Linskey

Combine -k and -p options

The -p option previously required the -k option, which was only meaningful when used with -p. This combines them, making -p take the number of snapshots to keep as its argument. Note that the script does not check whether -p's argument is valid, so an invalid sequence of options such as "-p -t" will produce either a confusing error message or unexpected behavior.


0c77f340a5 Benjamin Linskey

Suppress a spurious shellcheck warning


e23132a6c9 Benjamin Linskey

Use tabs for indentation


ea53ff6af5 Benjamin Linskey

Remove a stray character from an error message


9d696e368e Benjamin Linskey

Remove a stray character from doc comment


196e295779 Benjamin Linskey

Add a version number (tags/v1.0)


3c8a288428 Benjamin Linskey

Update readme


283fda23ac Benjamin Linskey

Improve documentation comments and usage text


74b7a1ad39 Benjamin Linskey

Fix spacing

snapshots.sh was somehow inadvertently written with a mix of spaces and tabs for indentation. Retabbed with four-space tabs.


Branches

Tags

v2.0

v1.0

Tree

LICENSEcommits | blame
README.mdcommits | blame
example.croncommits | blame
snapshots.sh*commits | blame

README.md

# ZFS snapshot management script

This is a simple script for creating, pruning, and listing ZFS snapshots. See
the comments at the beginning of `snapshots.sh` for usage instructions and
`example.crontab` for a demonstration of how this script can be used to
configure rolling snapshots with a simple retention policy.