Skip to content

optionally support snapshot selection by ZFS creation date instead of name pattern #288

Open
@sblive

Description

@sblive

I'm really sorry if I missed it in the docs, but it would be awesome to optionally support snapshot selection by ZFS creation date instead of name pattern.
simple use case: vm backup shuts down VM and creates snapshot with e.g. "_clean" in it's name, but think many potential tags like this, so it would be necessary to call zfs-autobackup many times with all possible/impossible to guess suffixes/tags.

if enabled, this new flag would call e.g. something like zfs list -rtsnap -poname,creation to get all snapshots with their creation date and use that instead of pattern matching the name. it could still be useful to preselect snapshots by name, so there would be 3 cases:
*) existing selection by name
*) new selection by creation date
*) new selection by creation date, but filtered by pattern

thanks! :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions