Implement periodic hammer2 snapshots

Operating Systems / DragonFlyBSD - Daniel Fojt [neosystem.org] - 8 June 2020 07:42 UTC

- 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

52d5964842 Implement periodic hammer2 snapshots.
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(-)

Upstream: gitweb.dragonflybsd.org


  • Share