Giter VIP home page Giter VIP logo

zfs-periodic's People

Contributors

evilham avatar rla123 avatar rollcat avatar ross avatar tykling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zfs-periodic's Issues

Missing license

I wanted to play around with zfs-periodic, but I am missing a license. I also looked at the port to no avail.

Can you please add license information?

Support spaces in dataset names

While not explicitly documented, it is possible (and supported by core ZFS and utilities) to create ZFS datasets with spaces in them (see openzfs/zfs#1027 for a small discussion). zfs-periodic fails to support such datasets due to use of simplistic shell variable splitting using the default IFS which splits on spaces. Example from the code:

datasets=$(zfs list -r -H -o name $pool)
# ...
for dataset in $datasets; do

I've noticed this only after 4 years of using zfs-periodic that one of my ZFS filesystems wasn't snapshotting properly. ๐Ÿ˜…

Please consider supporting such datasets.

Improve snapshot config flexibility

Since ZFS allows to store arbitrary attributes, maybe it would be useful to store number of snapshots to keep in variables like org.freebsd:snapshots.hourly|daily|weekly|monhtly?

I'll make a patch if someone is interested

Snapshot hooks

Thanks for this.

Would you consider adding pre-hook/post-hook functionality for snapshots?
It could be used to "prepare" services for snapshot taking (e.g. to flush MariaDB tables).

Skipping datasets feature is not specific enough

I believe the offending code to be:

    if [ -n "$skip" ]; then
egrep="($(echo $skip | sed "s/ /|/g"))"
            datasets=$(zfs list -r -H -o name $pool | egrep -v "$egrep")
    else
datasets=$(zfs list -r -H -o name $pool)
    fi

If I have datasets:
tank/t
tank/tv

and I don't want snapshots on tank/t
If I list it in the excludes in periodic.conf, tank/tv no longer receives snapshots.

Consider adding LICENSE

Supposedly no license => copyright (and I committed a crime by forking this repo?). MIT is a nice one :-D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.