git: Implement periodic hammer2 snapshots.

Daniel Fojt deef at crater.dragonflybsd.org
Mon Jun 8 00:52:50 PDT 2020


commit 52d59648426b16cd30b8f6ee5a4304e0a6ddd094
Author: Daniel Fojt <df at neosystem.org>
Date:   Mon Jun 8 09:38:49 2020 +0200

    Implement periodic hammer2 snapshots.
    
    - add new periodic(8) script 220.snapshot-hammer2 to daily interval
    - symlink the script also into weekly and monthly intervals
    - extend default periodic.conf(5) with variables to configure the script
    - describe new variables in periodic.conf.5 manpage
    - mention the functionality also in hammer2.8 manpage
    
    Note: "daily" variables are used by the script as defaults, so it's
          possible to set custom cron entry for different periodic invocation
          of the script, to create for example hourly snapshots
    
    Discussed with, reviewed and tested by: Matthew Dillon

Summary of changes:
 etc/Makefile                            |  2 +
 etc/defaults/periodic.conf              | 17 +++++++
 etc/periodic/daily/220.snapshot-hammer2 | 80 +++++++++++++++++++++++++++++++++
 etc/periodic/daily/Makefile             |  1 +
 sbin/hammer2/hammer2.8                  | 11 ++++-
 share/man/man5/periodic.conf.5          | 72 ++++++++++++++++++++++++++++-
 6 files changed, 180 insertions(+), 3 deletions(-)
 create mode 100644 etc/periodic/daily/220.snapshot-hammer2

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/52d59648426b16cd30b8f6ee5a4304e0a6ddd094


-- 
DragonFly BSD source repository



More information about the Commits mailing list