NAME

App::ZFSCurses::Backend - Perform backend operations.

VERSION

Version 1.212.

METHODS

new

Create an instance of App::ZFSCurses::Backend.

is_zfs_installed

Run the `zfs' command using qx and return the return code.

get_zfs_datasets

Return ZFS datasets found on the system. This method runs "zfs list -t filesystem" behind the scenes.

get_zfs_snapshots

Return ZFS snapshots found on the system. This method runs "zfs list -t snapshot" behind the scenes.

get_zfs_properties

Return ZFS properties for a given dataset. This method expects a dataset as first argument.

set_zfs_property

Set property to a given ZFS dataset.

This method expects three arguments:

  • a dataset

  • a property

  • a value

destroy_zfs

Destroy a given object: snapshot, dataset, volume.

SEE ALSO

The FreeBSD documentation on ZFS.

AUTHOR

Patrice Clement <monsieurp at cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2020 by Patrice Clement.

This is free software, licensed under the (three-clause) BSD License.

See the LICENSE file.