Port details |
- zfsnap Simple sh script to make zfs rolling snaphosts with cron
- 1.11.1_1 sysutils =20 1.11.1_1Version of this port present on the latest quarterly branch.
- Maintainer: yamagi@yamagi.org
- Port Added: 2010-08-03 17:40:00
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: curl, ca_root_nss, pkg, rsync, git
- License: BSD3CLAUSE
- WWW:
- https://github.com/zfsnap/zfsnap
- Description:
- zfSnap is a simple sh script for creating ZFS snapshots. When called from
cron rolling snapshots can be created and deleted automatically. The main
advantage of zfSnap is that it is written in 100% pure /bin/sh, does not
require any additional software to run, and is simple to use.
zfSnap keeps all information about snapshot in snapshot name. zfs snapshot
names are in form: Timestamp--TTL where timestamp is date and time of
snapshot creation and TTL is Time To Live in human readable form.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/sysutils/zfsnap/ && make install clean
- To add the package, run one of these commands:
- pkg install sysutils/zfsnap
- pkg install zfsnap
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: zfsnap
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (zfsnap-zfsnap-v1.11.1_GH0.tar.gz) = dd533d5faff9fa98deeb9ae0909784b67b0dc43d3870f259eeb390fbc1d03bcf
SIZE (zfsnap-zfsnap-v1.11.1_GH0.tar.gz) = 4969
Packages (timestamps in pop-ups are UTC):
- This port has no dependencies.
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- sysutils_zfsnap
- pkg-message:
- For install:
- To run zfSnap periodically you can add these options to your
/etc/periodic.conf
xPERIODICx_zfsnap_enable - Enable xPERIODICx snapshots
(values: YES | NO)
xPERIODICx_zfsnap_fs - Space separated zfs filesystems
to create non-recursive snapshots
xPERIODICx_zfsnap_recursive_fs - Space separated zfs filesystems
to create recursive snapshots
xPERIODICx_zfsnap_ttl - Set Time To Live
xPERIODICx_zfsnap_verbose - Verbose output (values: YES | NO)
xPERIODICx_zfsnap_flags - zfSnap generic flags
(except -v and -d)
xPERIODICx_zfsnap_enable_prefix - Create snapshots with prefix
(Default = YES)
xPERIODICx_zfsnap_prefix - Set prefix to use for new snapshots
(Default = "xPERIODICx-")
(where xPERIODICx is any of hourly, daily, weekly, monthly, reboot)
xPERIODICx_zfsnap_delete_enable - Delete old snapshots periodically
(values: YES | NO)
xPERIODICx_zfsnap_delete_flags - zfSnap generic flags
(except -v and -d)
xPERIODICx_zfsnap_delete_verbose - Verbose output (values: YES | NO)
xPERIODICx_zfsnap_delete_prefixes - Space separated list of prefixes
of old zfSnap snapshots to delete
'hourly-', 'daily-', 'weekly-',
'monthly-' and 'reboot-' prefixes
are hard-coded
(where xPERIODICx is any of daily, weekly, monthly)
Add these lines to your /etc/crontab
4 * * * * root periodic hourly
@reboot root periodic reboot
NOTE: it is not recommended to delete zfSnap snapshots every hour.
Deleting zfs snapshots takes more time than creating them.
There for it's better to delete snapshots once per day...
Periodic scripts provide very limited feature set. If you want to use
more advanced setup, you need to call zfSnap from crontab directly.
This way you can combine all sort of parameter combinations.
Don't forget to check https://github.com/graudeejs/zfSnap/wiki for more
info.
Feedback welcomed: graudeejs@gmail.com
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.11.1_1 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.11.1_1 20 Jul 2022 14:23:05 |
Tobias C. Berner (tcberner) |
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com> (Only the first 15 lines of the commit message are shown above ) |
1.11.1_1 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
1.11.1_1 14 Aug 2019 12:16:13 |
mat |
Convert to UCL & cleanup pkg-message (categories s) |
1.11.1_1 22 Jun 2019 09:02:03 |
amdmi3 |
- Update WWW
Approved by: portmgr blanket |
1.11.1_1 22 Jan 2018 17:05:49 |
eugen |
sysutils/zfsnap: fix -s/-S mode.
Move creation of files from "do-patch" to "post-extract" target,
so that patches from files/ directory get applied.
While here, add LICENSE.
PR: 223951
Submitted by: Anton Sayetsky <vsasjason@gmail.com> (based on)
Approved by: yamagi@yamagi.org (maintainer timeout, 7 weeks) |
1.11.1 19 May 2016 11:09:14 |
amdmi3 |
- Fix trailing whitespace in pkg-messages
Approved by: portmgr blanket |
1.11.1 07 May 2015 20:24:16 |
mat |
Update ports in the remaining categories to not use GH_COMMIT.
With minor cleanups to make things simpler.
With hat: portmgr
Sponsored by: Absolight |
1.11.1 22 Nov 2014 09:13:36 |
antoine |
Cleanup plist |
1.11.1 01 Oct 2014 08:39:44 |
madpilot |
Assign maintainership to submitter of the last PR committed to this
port who volunteered via email.
PR: 192987
Submitted by: yamagi@yamagi.org (New maintainer) |
1.11.1 17 Sep 2014 14:04:58 |
madpilot |
- Update to 1.11.1 [1]
- Reset maintainer due to repeated timeouts
PR: 192987 [1]
Submitted by: yamagi at yamagi.org |
1.11.0 04 Sep 2014 11:11:08 |
tdb |
Fix zfsnap.
The project has changed location. I have verified the old and new
tarballs by hand and the contents (except the directory name) are
identical.
PR: 192705 |
1.11.0 16 Aug 2014 19:42:06 |
marino |
Mark sysutils/zfsnap BROKEN due to fetching checksum mismatch
PR: 192705
Reported by: amvandemore (gmail) |
1.11.0 18 Jan 2014 16:44:11 |
rakuco |
Improve wording in pkg-descr.
PR: ports/180607
Submitted by: "N.J. Mann" <njm@njm.me.uk>
Approved by: maintainer timeout (185 days) |
1.11.0 27 Dec 2013 18:32:10 |
bapt |
Support stage |
1.11.0 20 Sep 2013 23:06:00 |
bapt |
Add NO_STAGE all over the place in preparation for the staging support (cat:
sysutils) |
1.11.0 30 Dec 2012 04:28:49 |
tota |
- Update to 1.11.0
- Switch to USE_GITHUB
PR: ports/174767
Submitted by: Aldis Berjoza <graudeejs_AT_gmail_DOT_com> (maintainer) |
1.10.1_1 14 Oct 2012 21:09:21 |
madpilot |
- Add hourly deletion script
- While I'm here, trim Makefile headers
PR: ports/172665
Submitted by: Aldis Berjoza <graudeejs@gmail.com> (maintainer)
Feature safe: yes |
1.10.1 24 Oct 2011 09:11:38 |
dougb |
The vast majority of pkg-descr files had the following format when they
had both lines:
Author: ...
WWW: ....
So standardize on that, and move them to the end of the file when necessary.
Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.
s/AUTHOR/Author/
A few other various formatting issues |
1.10.1 17 Sep 2011 08:42:12 |
crees |
Update email address for ports maintained by aldis@bsdroot.lv -->
graudeejs@gmail.com |
1.10.1 05 Sep 2011 09:17:11 |
sunpoet |
- Update to 1.10.1
- Update WWW, links and e-mail address
PR: ports/160396
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) |
1.10.0 05 Jun 2011 12:46:30 |
tdb |
- Update zfSnap to 1.10.0
This includes a workaround for use with zpool v28. See UPDATING for
more information.
PR: ports/157621
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) |
1.9.4 14 Feb 2011 18:56:34 |
sylvio |
- Update to 1.9.4
PR: ports/154779
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) |
1.9.2 15 Jan 2011 21:04:24 |
sunpoet |
- Update to 1.9.2
Changes:
- Remove awk
PR: ports/154037
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
Feature safe: yes |
1.9.1 13 Jan 2011 11:53:18 |
tdb |
- Update to 1.9.1
PR: ports/153934
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
Feature safe: yes |
1.8.2 12 Jan 2011 12:33:21 |
sunpoet |
- Update to 1.8.2
Changes:
- Add -s & -S switches to prevent actions on pool while resilvering
or scrubing pool
PR: ports/153927
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
Feature safe: yes |
1.7.2 11 Jan 2011 08:35:14 |
sunpoet |
- Update to 1.7.2
PR: ports/153860
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) |
1.7.0 08 Nov 2010 20:32:59 |
tdb |
- Update to 1.7.0.
PR: ports/152064
Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) |
1.6.0 26 Oct 2010 08:04:14 |
girgen |
Update to version 1.6.0
PR: ports/151740 |
1.5.0 08 Oct 2010 07:39:19 |
sunpoet |
- Update to 1.5.0
Changes:
- Added -D switch to delete all zfSnap snapshots of specific zpool/zfs
http://wiki.bsdroot.lv/zfsnap#delete_all_zfsnap_snapshots_on_specific_filesystem
PR: ports/151213
Submitted by: "aldis@bsdroot.lv" <aldis@bsdroot.lv> (maintainer)
Approved by: pgollucci (mentor) |
1.4.0 29 Sep 2010 13:12:29 |
decke |
- Update to 1.4.0
PR: ports/151017
Submitted by: Aldis Berjoza <aldis at bsdroot dot lv> (maintainer)
Approved by: beat (co-mentor, implicit) |
1.3.2 20 Sep 2010 16:15:00 |
tdb |
- Update to 1.3.2
- This version specifies the full path to the zfs binary (ie. /sbin/zfs)
PR: ports/150758
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> (maintainer) |
1.3.1 20 Sep 2010 00:41:31 |
tdb |
- Update to 1.3.1
PR: ports/150732
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> (maintainer) |
1.2.6 05 Aug 2010 22:34:10 |
tdb |
- Update to 1.2.6
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> (maintainer) |
1.2.5 05 Aug 2010 17:31:50 |
tdb |
- Update to 1.2.5
PR: ports/149332
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> |
1.2.4 05 Aug 2010 16:13:31 |
tdb |
- Update to 1.2.4
PR: ports/149324
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> |
1.1.8 03 Aug 2010 17:42:59 |
tdb |
- Update to 1.1.8
PR: ports/149239
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> |
1.1 03 Aug 2010 17:39:21 |
tdb |
- Add new port sysutils/zfsnap:
zfSnap is very simple sh script to make periodic zfs snapshots with cron.
It will also delete old snapshots.
WWW: http://aldis.git.bsdroot.lv/zfSnap
PR: ports/149188
Submitted by: Aldis Berjoza <aldis at bsdroot.lv> |