- Description:
- ZFS snapshot script
- Last Change:
- Clone URL:
ssh://anonymous@git.linskey.org/zfs-snapshots
- ECDSA:
SHA256:NGp9Hbafw+cmfseVXcP9q9zBAU0tLvvzRYQEsJdAJDg
- ED25519:
SHA256:Wr25Bc8kREsGVjh7OY+yNRx6hUDD68qr2eKsvPc0y6w
- RSA:
SHA256:egEdHfpk8FWAExkycQm+RmqcfrTovy/joYsa2GDGDt4
Commit Briefs
Bump version to 2.0 and add copyright year (main, tags/v2.0)
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.
Add a version number (tags/v1.0)
Fix spacing
snapshots.sh was somehow inadvertently written with a mix of spaces and tabs for indentation. Retabbed with four-space tabs.
Branches
Tree
| LICENSE | commits | blame |
| README.md | commits | blame |
| example.cron | commits | 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.
