Ignore:
Timestamp:
02/25/14 10:55:49 (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4f9718b
Parents:
c24d6287
Message:
  • Major update to life-preserver backend

Add new "automatic" mode for creating snapshots

When enabled, this will create snapshots in the following manner:

  • Snapshots will be created every 5 minutes and kept for an hour.
  • A hourly snapshot will be kept for a day.
  • A daily snapshot will be kept for a month.
  • A Monthly snapshot will be kept for a year.
  • The life-preserver daemon will also keep track of the zpool disk space, if the capacity falls below 75%, the oldest snapshot will be auto-pruned.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/zfslistcron.sh

    r2b45e58 r9cd0fa0  
    2525   if [ "$min" = '*/10' ] ; then time="10min" ; fi 
    2626   if [ "$min" = '*/5' ] ; then time="5min" ; fi 
     27   if [ "$min" = '*/5' -a "$count" = "auto" ] ; then time="Automatic" ; fi 
    2728   echo "$i - $time - total: $count" 
    2829done 
Note: See TracChangeset for help on using the changeset viewer.