FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

Port details
zfsnap Simple sh script to make zfs rolling snaphosts with cron
1.11.1 sysutils on this many watch lists=12 search for ports that depend on this port Find issues related to this port Report an issue related to this port
Maintainer: yamagi@yamagi.org search for ports maintained by this maintainer
Port Added: 03 Aug 2010 17:40:00
License: not specified in port
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.

WWW: https://github.com/graudeejs/zfSnap/
SVNWeb : Homepage : PortsMon

To install the port: cd /usr/ports/sysutils/zfsnap/ && make install clean
To add the package: pkg install zfsnap

PKGNAME: zfsnap

distinfo:

SHA256 (zfsnap-zfsnap-v1.11.1_GH0.tar.gz) = dd533d5faff9fa98deeb9ae0909784b67b0dc43d3870f259eeb390fbc1d03bcf
SIZE (zfsnap-zfsnap-v1.11.1_GH0.tar.gz) = 4969

There are no ports dependent upon this port


Configuration Options
     No options to configure

pkg-mesage:
	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:
  1. https://codeload.github.com/zfsnap/zfsnap/tar.gz/v1.11.1?dummy=/
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2011-06-05
    Affects: users of sysutils/zfsnap
    Author: Aldis Berjoza <aldis@bsdroot.lv>
    Reason: 
      There is an issue with zpool v28 (currently only on 9-CURRENT, or
      8-STABLE systems that have been manually patched) that affects
      zfSnap. If you are using v28 make sure to use the -zpool28fix flag
      with zfsnap to work around the problem.
    
      For more information please see:
    
      http://wiki.bsdroot.lv/zfsnap#zpool_v28_zfs_destroy_-r_bug
    
    
  • 2010-09-29
    Affects: users of sysutils/zfsnap
    Author: Aldis Berjoza <aldis@bsdroot.lv>
    Reason: 
      Since timestamp format changed you need to use -o option with -d
      option in order to be able to delete old snapshots. Note however that
      you don't need -o when creating new snapshots, unless you want to keep
      using the old timestamp format.
    
      See http://wiki.bsdroot.lv/zfsnap for more info.
    
    
Port Moves
  • port moved here from sysutils/zfSnap on 2010-08-03
    REASON: Change name to lower case

Number of commits found: 32

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
19 May 2016 11:09:14
Original commit files touched by this commit  1.11.1
Revision:415503
amdmi3 search for other commits by this committer
- Fix trailing whitespace in pkg-messages

Approved by:	portmgr blanket
07 May 2015 20:24:16
Original commit files touched by this commit  1.11.1
Revision:385665
mat search for other commits by this committer
Update ports in the remaining categories to not use GH_COMMIT.

With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
22 Nov 2014 09:13:36
Original commit files touched by this commit  1.11.1
Revision:373038
antoine search for other commits by this committer
Cleanup plist
01 Oct 2014 08:39:44
Original commit files touched by this commit  1.11.1
Revision:369704
madpilot search for other commits by this committer
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)
17 Sep 2014 14:04:58
Original commit files touched by this commit  1.11.1
Revision:368376
madpilot search for other commits by this committer
- Update to 1.11.1 [1]
- Reset maintainer due to repeated timeouts

PR:		192987 [1]
Submitted by:	yamagi at yamagi.org
04 Sep 2014 11:11:08
Original commit files touched by this commit  1.11.0
Revision:367258
tdb search for other commits by this committer
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
16 Aug 2014 19:42:06
Original commit files touched by this commit  1.11.0
Revision:365127
marino search for other commits by this committer
Mark sysutils/zfsnap BROKEN due to fetching checksum mismatch

PR:		192705
Reported by:	amvandemore (gmail)
18 Jan 2014 16:44:11
Original commit files touched by this commit  1.11.0
Revision:340195
rakuco search for other commits by this committer
Improve wording in pkg-descr.

PR:		ports/180607
Submitted by:	"N.J. Mann" <njm@njm.me.uk>
Approved by:	maintainer timeout (185 days)
27 Dec 2013 18:32:10
Original commit files touched by this commit  1.11.0
Revision:337775
bapt search for other commits by this committer
Support stage
20 Sep 2013 23:06:00
Original commit files touched by this commit  1.11.0
Revision:327772
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
sysutils)
30 Dec 2012 04:28:49
Original commit files touched by this commit  1.11.0
Revision:309646
tota search for other commits by this committer
- Update to 1.11.0
- Switch to USE_GITHUB

PR:		ports/174767
Submitted by:	Aldis Berjoza <graudeejs_AT_gmail_DOT_com> (maintainer)
14 Oct 2012 21:09:21
Original commit files touched by this commit  1.10.1_1
Revision:305895
madpilot search for other commits by this committer
- 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
24 Oct 2011 09:11:38
Original commit files touched by this commit  1.10.1
dougb search for other commits by this committer
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
17 Sep 2011 08:42:12
Original commit files touched by this commit  1.10.1
crees search for other commits by this committer
Update email address for ports maintained by aldis@bsdroot.lv -->
graudeejs@gmail.com
05 Sep 2011 09:17:11
Original commit files touched by this commit  1.10.1
sunpoet search for other commits by this committer
- Update to 1.10.1
- Update WWW, links and e-mail address

PR:             ports/160396
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
05 Jun 2011 12:46:30
Original commit files touched by this commit  1.10.0
tdb search for other commits by this committer
- 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)
14 Feb 2011 18:56:34
Original commit files touched by this commit  1.9.4
sylvio search for other commits by this committer
- Update to 1.9.4

PR:             ports/154779
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
15 Jan 2011 21:04:24
Original commit files touched by this commit  1.9.2
sunpoet search for other commits by this committer
- Update to 1.9.2

Changes:
- Remove awk

PR:             ports/154037
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
Feature safe:   yes
13 Jan 2011 11:53:18
Original commit files touched by this commit  1.9.1
tdb search for other commits by this committer
- Update to 1.9.1

PR:             ports/153934
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
Feature safe:   yes
12 Jan 2011 12:33:21
Original commit files touched by this commit  1.8.2
sunpoet search for other commits by this committer
- 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
11 Jan 2011 08:35:14
Original commit files touched by this commit  1.7.2
sunpoet search for other commits by this committer
- Update to 1.7.2

PR:             ports/153860
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
08 Nov 2010 20:32:59
Original commit files touched by this commit  1.7.0
tdb search for other commits by this committer
- Update to 1.7.0.

PR:             ports/152064
Submitted by:   Aldis Berjoza <aldis@bsdroot.lv> (maintainer)
26 Oct 2010 08:04:14
Original commit files touched by this commit  1.6.0
girgen search for other commits by this committer
Update to version 1.6.0

PR:     ports/151740
08 Oct 2010 07:39:19
Original commit files touched by this commit  1.5.0
sunpoet search for other commits by this committer
- 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)
29 Sep 2010 13:12:29
Original commit files touched by this commit  1.4.0
decke search for other commits by this committer
- Update to 1.4.0

PR:             ports/151017
Submitted by:   Aldis Berjoza <aldis at bsdroot dot lv> (maintainer)
Approved by:    beat (co-mentor, implicit)
20 Sep 2010 16:15:00
Original commit files touched by this commit  1.3.2
tdb search for other commits by this committer
- 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)
20 Sep 2010 00:41:31
Original commit files touched by this commit  1.3.1
tdb search for other commits by this committer
- Update to 1.3.1

PR:             ports/150732
Submitted by:   Aldis Berjoza <aldis at bsdroot.lv> (maintainer)
05 Aug 2010 22:34:10
Original commit files touched by this commit  1.2.6
tdb search for other commits by this committer
- Update to 1.2.6

Submitted by:   Aldis Berjoza <aldis at bsdroot.lv> (maintainer)
05 Aug 2010 17:31:50
Original commit files touched by this commit  1.2.5
tdb search for other commits by this committer
- Update to 1.2.5

PR:             ports/149332
Submitted by:   Aldis Berjoza <aldis at bsdroot.lv>
05 Aug 2010 16:13:31
Original commit files touched by this commit  1.2.4
tdb search for other commits by this committer
- Update to 1.2.4

PR:             ports/149324
Submitted by:   Aldis Berjoza <aldis at bsdroot.lv>
03 Aug 2010 17:42:59
Original commit files touched by this commit  1.1.8
tdb search for other commits by this committer
- Update to 1.1.8

PR:             ports/149239
Submitted by:   Aldis Berjoza <aldis at bsdroot.lv>
03 Aug 2010 17:39:21
Original commit files touched by this commit  1.1
tdb search for other commits by this committer
- 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>

Number of commits found: 32

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
openssl*Sep 23
openssl-devel*Sep 23
irssi*Sep 22
irssi*Sep 22
firefoxSep 20
firefox*Sep 20
firefox-esrSep 20
firefox-esr*Sep 20
libxulSep 20
libxul*Sep 20
linux-firefoxSep 20
linux-firefox*Sep 20
linux-seamonkeySep 20
linux-seamonkey*Sep 20
linux-thunderbirdSep 20

13 vulnerabilities affecting 38 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 26270
Broken 376
Deprecated 219
Ignore 640
Forbidden 0
Restricted 199
No CDROM 83
Vulnerable 61
Expired 15
Set to expire 205
Interactive 0
new 24 hours 5
new 48 hours7
new 7 days30
new fortnight58
new month111

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.