---
name: zfsnap
version: 1.11.0
origin: sysutils/zfsnap
comment: Simple sh script to make zfs rolling snaphosts with cron
arch: freebsd:9:x86:64
www: https://github.com/graudeejs/zfSnap/
maintainer: graudeejs@gmail.com
prefix: /usr/local
licenselogic: single
flatsize: 25199
desc: |
  zfSnap is simple sh script to make rolling zfs snapshots with cron. Main
  advantage of zfSnap is that it's written in %25100 pure /bin/sh, doesn't
  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/
categories: [sysutils]
files:
  /usr/local/etc/periodic/daily/402.zfSnap: 9b4f450f06f485377d55722db1174dbe29690c8e5a9c22a9b793c524b9afc91d
  /usr/local/etc/periodic/daily/403.zfSnap_delete: 7a47c2eb649539c4ab78c929be038a9389a64a5f3a4c101bdcee00caee6844c7
  /usr/local/etc/periodic/hourly/402.zfSnap: 2029f41407e88b645ce0d3b47197608d0342ffc0403185c1f7a2a4434dadb40d
  /usr/local/etc/periodic/hourly/403.zfSnap_delete: b797ba582496a01c902821a41b05595eab4e5bc8fbffb6526a7d88ea74504cb6
  /usr/local/etc/periodic/monthly/402.zfSnap: 4ac7ad5a4debdb4c94efef4d550857dc57eafa73408832c0730903417afdc030
  /usr/local/etc/periodic/monthly/403.zfSnap_delete: fcda5ee719b7da9d2becbeaddda0b34e4860f4f7934220f904cd1500fede7248
  /usr/local/etc/periodic/reboot/402.zfSnap: 5f2183262f1ddb29c8c2ec7373afec7176297d191d0925e9657d9ed735d67b1b
  /usr/local/etc/periodic/weekly/402.zfSnap: e253132ab0d993aa15aa6e77f2ed729ee77e91f91eabe30c07c56463cdac9d0f
  /usr/local/etc/periodic/weekly/403.zfSnap_delete: a152a6144c3916fbe3bcacd5e44dea7a4f13122a81df6e46fc2be0e41f4cb1a2
  /usr/local/sbin/zfSnap: a794e70a7b2fd499f3a444079f1d1ffc5067af7d2ccf4062796f5d34e35eb332
directories:
  /usr/local/etc/periodic/weekly/: y
  /usr/local/etc/periodic/reboot/: y
  /usr/local/etc/periodic/monthly/: y
  /usr/local/etc/periodic/hourly/: y
  /usr/local/etc/periodic/daily/: y
  /usr/local/etc/periodic/: y
scripts: {}
message: "\n\tTo run zfSnap periodically you can add these options to your\n\t/etc/periodic.conf\n\n\txPERIODICx_zfsnap_enable\t-
  Enable xPERIODICx snapshots\n\t\t\t\t\t  (values: YES | NO)\n\txPERIODICx_zfsnap_fs\t\t-
  Space separated zfs filesystems\n\t\t\t\t\t  to create non-recursive snapshots\n\txPERIODICx_zfsnap_recursive_fs\t-
  Space separated zfs filesystems\n\t\t\t\t\t  to create recursive snapshots\n\txPERIODICx_zfsnap_ttl\t\t-
  Set Time To Live\n\txPERIODICx_zfsnap_verbose\t- Verbose output (values: YES | NO)\n\txPERIODICx_zfsnap_flags\t\t-
  zfSnap generic flags\n\t\t\t\t\t  (except -v and -d)\n\txPERIODICx_zfsnap_enable_prefix
  - Create snapshots with prefix\n\t\t\t\t\t  (Default = YES)\n\txPERIODICx_zfsnap_prefix\t-
  Set prefix to use for new snapshots\n\t\t\t\t\t  (Default = \"xPERIODICx-\")\n\t(where
  xPERIODICx is any of hourly, daily, weekly, monthly, reboot)\n\n\txPERIODICx_zfsnap_delete_enable
  \   - Delete old snapshots periodically\n\t\t\t\t\t     (values: YES | NO)\n\txPERIODICx_zfsnap_delete_flags\t
  \  - zfSnap generic flags\n\t\t\t\t\t     (except -v and -d)\n\txPERIODICx_zfsnap_delete_verbose
  \  - Verbose output (values: YES | NO)\n\txPERIODICx_zfsnap_delete_prefixes  - Space
  separated list of prefixes\n\t\t\t\t\t     of old zfSnap snapshots to delete\n\t\t\t\t\t
  \    'hourly-', 'daily-', 'weekly-',\n\t\t\t\t\t     'monthly-' and 'reboot-' prefixes\n\t\t\t\t\t
  \    are hard-coded\n\t(where xPERIODICx is any of daily, weekly, monthly)\n\n\n\tAdd
  these lines to your /etc/crontab\n\t4\t*\t*\t*\t*\troot\tperiodic hourly\n\t@reboot\t\t\t\t\troot\tperiodic
  reboot\n\n\tNOTE: it is not recommended to delete zfSnap snapshots every hour.\n\tDeleting
  zfs snapshots takes more time than creating them.\n\tThere for it's better to delete
  snapshots once per day...\n\n\t\n\tPeriodic scripts provide very limited feature
  set. If you want to use\n\tmore advanced setup, you need to call zfSnap from crontab
  directly.\n\tThis way you can combine all sort of parameter combinations.\n\n\tDon't
  forget to check https://github.com/graudeejs/zfSnap/wiki for more\n\tinfo.\n\n\tFeedback
  welcomed: graudeejs@gmail.com\n"
