BSD Ports

filesystems/zfsnap2 2.0.0.b3 MidnightBSD

Portable performant script to make rolling ZFS snapshots easy

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3
Categories
filesystems, sysutils

Description

zfsnap makes rolling ZFS snapshots easy and - with cron - automatic.

The main advantages of zfsnap are its portability, simplicity, and performance. It is written purely in /bin/sh and does not require any additional software - other than a few core *nix utilies.

zfsnap stores all the information it needs about a snapshot directly in its name; no database or special ZFS properties are needed. The information is stored in a way that is human readable, making it much easier for a sysadmin to manage and audit backup schedules.

Snapshot names are in the format of pool/fs@[prefix]Timestamp--TimeToLive (e.g. pool/fs@weekly-2014-04-07_05.30.00--6m). The prefix is optional but can be quite useful for filtering, Timestamp is the date and time when the snapshot was created, and TimeToLive (TTL) is the amount of time the snapshot will be kept until it can be deleted.

In the other systems

The newest version among them is 2.0.0.b3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDfilesystems/zfsnap22.0.0.b3 newestno data-[email protected]-
FreeBSDfilesystems/zfsnap22.0.0.b3_4 newestnone known-[email protected]-
DragonFlyfilesystems/zfsnap22.0.0.b3_4 newestnone known-[email protected]-
HardenedBSDfilesystems/zfsnap22.0.0.b3_4 newestno data-[email protected]-
GhostBSDfilesystems/zfsnap22.0.0.b3_4 newestno data-[email protected]-

Install

Binary package:

mport install zfsnap2

From mports:

cd /usr/mports/filesystems/zfsnap2 && make install clean

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

RUN_DEPENDS=	zfsnap2>0:filesystems/zfsnap2

Dependencies

No port depends on this one.

Configuration

Options name: filesystems_zfsnap

OptionDefaultDescription
BASHon
DOCSoff
ZSHon
Service scripts
none

Files

Manual pages 1
  • zfsnap(8)
pkg-plist 14
  • etc/bash_completion.d/zfsnap.sh
  • etc/periodic/daily/402.zfsnap
  • etc/periodic/monthly/402.zfsnap
  • etc/periodic/weekly/402.zfsnap
  • share/man/man8/zfsnap.8.gz
  • sbin/zfsnap
  • share/zfsnap2/commands/destroy.sh
  • share/zfsnap2/commands/recurseback.sh
  • share/zfsnap2/commands/snapshot.sh
  • share/zfsnap2/completion/zfsnap-completion.bash
  • share/zfsnap2/completion/zfsnap-completion.tcsh
  • share/zfsnap2/completion/zfsnap-completion.zsh
  • share/zfsnap2/core.sh
  • share/zsh/site-functions/_zfsnap
distinfo 1
FileSizeSHA256
zfsnap-zfsnap-v2.0.0-beta3_GH0.tar.gz29973d73be34b58d94b89010e2be6fc3d34bdc34b9675aaa2bebfe446dffb683e45d3