BSD Ports

filesystems/zfstools 0.3.6_3 FreeBSD

OpenSolaris-compatible auto snapshotting for ZFS

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
filesystems, sysutils, ruby
Package size
9.5 KiB, 25.4 KiB installed

Description

ZFSTools is an OpenSolaris-like and compatible auto snapshotting script, which also supports auto snapshotting mysql databases.

In the other systems

SystemPortVersion
FreeBSDfilesystems/zfstools0.3.6_3
DragonFlyfilesystems/zfstools0.3.6_2
MidnightBSDfilesystems/zfstools0.3.6_1

Install

Binary package:

pkg install zfstools

From the ports tree:

cd /usr/ports/filesystems/zfstools/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	zfstools>0:filesystems/zfstools

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.3.6_30.3.6_3-0.3.6_20.3.6_3
FreeBSD:14:quarterly0.3.6_30.3.6_3n/a0.3.6_20.3.6_3
FreeBSD:15:latest0.3.6_30.3.6_3n/a0.3.6_20.3.6_2
FreeBSD:15:quarterly0.3.6_30.3.6_3n/an/an/a
FreeBSD:16:latest0.3.6_30.3.6_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 5
Run dependencies 7

No port depends on this one.

Configuration

Options name: filesystems_zfstools

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
ruby shebangfix
Service scripts
none

Message after installing

To enable automatic snapshots, place lines such as these into /etc/crontab:

    PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
    15,30,45 * * * * root /usr/local/sbin/zfs-auto-snapshot frequent  4
    0        * * * * root /usr/local/sbin/zfs-auto-snapshot hourly   24
    7        0 * * * root /usr/local/sbin/zfs-auto-snapshot daily     7
    14       0 * * 7 root /usr/local/sbin/zfs-auto-snapshot weekly    4
    28       0 1 * * root /usr/local/sbin/zfs-auto-snapshot monthly  12

This will keep 4 15-minutely snapshots, 24 hourly snapshots, 7 daily snapshots,
4 weekly snapshots and 12 monthly snapshots. Any resulting zero-sized snapshots
will be automatically cleaned up.

Enable snapshotting on a dataset or top-level pool with:

    zfs set com.sun:auto-snapshot=true DATASET

Children datasets can be disabled for snapshot with:

    zfs set com.sun:auto-snapshot=false DATASET

Or for specific intervals:

    zfs set com.sun:auto-snapshot:frequent=false DATASET

See website and command usage output for further details.

Files

pkg-plist 9
  • share/doc/zfstools/README.md
  • %%RUBY_SITELIBDIR%%/zfstools.rb
  • %%RUBY_SITELIBDIR%%/zfstools/dataset.rb
  • %%RUBY_SITELIBDIR%%/zfstools/features.rb
  • %%RUBY_SITELIBDIR%%/zfstools/pool.rb
  • %%RUBY_SITELIBDIR%%/zfstools/snapshot.rb
  • sbin/zfs-auto-snapshot
  • sbin/zfs-cleanup-snapshots
  • sbin/zfs-snapshot-mysql
distinfo 1
FileSizeSHA256
bdrewery-zfstools-v0.3.6_GH0.tar.gz12323060112d89f11e95415f07cdbc05fef29a6a1bc5046046c56d37f16b1232fb2cf
Master sites 2
  • GH
  • http://mirror.shatow.net/freebsd/zfstools/

Commit history 0

No commits in the history this site was built from.