Giter Club home page Giter Club logo

list-zfs-snapshots's Introduction

list-zfs-snapshots

Build Status Coverage Status GPL 3+

list-zfs-snapshots can list ZFS snapshots in various ways.

usage

  • Calling list-zfs-snapshots without any arguments will list all ZFS volumes.
    The output contains the snapshot names, relative and absolute snapshot sizes and is ordered by snapshot size.

  • Calling list-zfs-snapshots with the name of a ZFS pool as first argument will list the snapshot usage of only that pool.
    The output contains the snapshot names, relative and absolute snapshot sizes and is ordered by snapshot size.

  • Calling list-zfs-snapshots with the name of a ZFS volume as first argument will list the individual snapshots in that volume.
    The output contains the snapshot names, relative and absolute snapshot sizes and is ordered by snapshot creation time.
    Because of ZFS internals the used space per snapshot might not be correct. The sum of the used space of all snapshots seldom matches the snapshot usage listed at the volume. The volume value is correct. Deleting individual snapshots will change the used space of other snapshots โ€“ this is a byproduct of the copy-on-write semantics and completely normal.

  • Calling list-zfs-snapshots with the name of a snapshot as first argument followed by either after or before as second argument will list all other snapshots of in the corresponding volume that have been created either after or before the given snapshot.
    The output contains only the snapshot names and is ordered by snapshot creation time.

  • Calling list-zfs-snapshots with either -h or --help as first argument will show a brief help text.

configuration

By default the zfs binary is expected at /sbin/zfs. The location can be overridden by setting the ZFS_BINARY environment variable.

dependencies

  • a not-so-ancient version of Perl
  • the Number::Bytes::Human Perl module
  • ZFS

resources

Project homepage, git repository and bug tracker are available at https://github.com/mmitch/list-zfs-snapshots

license

Copyright (C) 2020 Christian Garbs [email protected]
Licensed under GNU GPL v3 or later.

list-zfs-snapshots is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

list-zfs-snapshots is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with list-zfs-snapshots. If not, see http://www.gnu.org/licenses/.

list-zfs-snapshots's People

Contributors

dependabot[bot] avatar mmitch avatar

Watchers

 avatar  avatar  avatar

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.