diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-28 00:40:05 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-28 02:29:36 -0700 |
commit | 76c83257c2f3496d7a3af17290109d7714527a3f (patch) | |
tree | 0b3de2d1b0459bc943bb92c36fb4124603653ec0 /sys-fs/zfs-auto-snapshot/files | |
parent | dev-db/oracle-instantclient: fix unpack problem (diff) | |
download | gentoo-76c83257c2f3496d7a3af17290109d7714527a3f.tar.gz gentoo-76c83257c2f3496d7a3af17290109d7714527a3f.tar.bz2 gentoo-76c83257c2f3496d7a3af17290109d7714527a3f.zip |
sys-fs/zfs-auto-snapshot: revbump, add systemd timers
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-fs/zfs-auto-snapshot/files')
11 files changed, 81 insertions, 0 deletions
diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.service b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.service new file mode 100644 index 000000000000..6929cb837438 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.service @@ -0,0 +1,6 @@ +[Unit] +Description=ZFS daily snapshot service +Documentation=man:zfs-auto-snapshot(8) + +[Service] +ExecStart=@GENTOO_PORTAGE_EPREFIX@/usr/sbin/zfs-auto-snapshot @DEFAULT_EXCLUDE@ --skip-scrub --label=daily --keep=31 // diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.timer b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.timer new file mode 100644 index 000000000000..2198d83f458b --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-daily.timer @@ -0,0 +1,8 @@ +[Unit] +Description=ZFS daily snapshot timer +Documentation=man:zfs-auto-snapshot(8) + +[Timer] +OnCalendar=daily +Persistent=true +RandomizedDelaySec=600 diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.service b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.service new file mode 100644 index 000000000000..ae698351ee3e --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.service @@ -0,0 +1,6 @@ +[Unit] +Description=ZFS frequent snapshot service +Documentation=man:zfs-auto-snapshot(8) + +[Service] +ExecStart=@GENTOO_PORTAGE_EPREFIX@/usr/sbin/zfs-auto-snapshot @DEFAULT_EXCLUDE@ --skip-scrub --label=frequent --keep=4 // diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.timer b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.timer new file mode 100644 index 000000000000..e42f2eec50e0 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-frequent.timer @@ -0,0 +1,8 @@ +[Unit] +Description=ZFS frequent snapshot timer +Documentation=man:zfs-auto-snapshot(8) + +[Timer] +OnCalendar=*:0/15 +Persistent=true +RandomizedDelaySec=60 diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.service b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.service new file mode 100644 index 000000000000..72dc764e4c7f --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.service @@ -0,0 +1,6 @@ +[Unit] +Description=ZFS hourly snapshot service +Documentation=man:zfs-auto-snapshot(8) + +[Service] +ExecStart=@GENTOO_PORTAGE_EPREFIX@/usr/sbin/zfs-auto-snapshot @DEFAULT_EXCLUDE@ --skip-scrub --label=hourly --keep=24 // diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.timer b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.timer new file mode 100644 index 000000000000..5d3f5e51e312 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-hourly.timer @@ -0,0 +1,8 @@ +[Unit] +Description=ZFS hourly snapshot timer +Documentation=man:zfs-auto-snapshot(8) + +[Timer] +OnCalendar=hourly +Persistent=true +RandomizedDelaySec=59 diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.service b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.service new file mode 100644 index 000000000000..c96607cd6a16 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.service @@ -0,0 +1,6 @@ +[Unit] +Description=ZFS monthly snapshot service +Documentation=man:zfs-auto-snapshot(8) + +[Service] +ExecStart=@GENTOO_PORTAGE_EPREFIX@/usr/sbin/zfs-auto-snapshot @DEFAULT_EXCLUDE@ --skip-scrub --label=monthly --keep=12 // diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.timer b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.timer new file mode 100644 index 000000000000..bf5f8944bcb5 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-monthly.timer @@ -0,0 +1,8 @@ +[Unit] +Description=ZFS monthly snapshot timer +Documentation=man:zfs-auto-snapshot(8) + +[Timer] +OnCalendar=monthly +Persistent=true +RandomizedDelaySec=600 diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.service b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.service new file mode 100644 index 000000000000..47a517ebbed9 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.service @@ -0,0 +1,6 @@ +[Unit] +Description=ZFS weekly snapshot service +Documentation=man:zfs-auto-snapshot(8) + +[Service] +ExecStart=@GENTOO_PORTAGE_EPREFIX@/usr/sbin/zfs-auto-snapshot @DEFAULT_EXCLUDE@ --skip-scrub --label=weekly --keep=8 // diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.timer b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.timer new file mode 100644 index 000000000000..9eebb0dfdb8d --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot-weekly.timer @@ -0,0 +1,8 @@ +[Unit] +Description=ZFS weekly snapshot timer +Documentation=man:zfs-auto-snapshot(8) + +[Timer] +OnCalendar=weekly +Persistent=true +RandomizedDelaySec=600 diff --git a/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot.target b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot.target new file mode 100644 index 000000000000..b2d10f606da5 --- /dev/null +++ b/sys-fs/zfs-auto-snapshot/files/zfs-auto-snapshot.target @@ -0,0 +1,11 @@ +[Unit] +Description=Automatically create, rotate, and destroy periodic ZFS snapshots. +Documentation=man:zfs-auto-snapshot(8) +Requires=zfs-auto-snapshot-frequent.timer +Requires=zfs-auto-snapshot-daily.timer +Requires=zfs-auto-snapshot-hourly.timer +Requires=zfs-auto-snapshot-weekly.timer +Requires=zfs-auto-snapshot-monthly.timer + +[Install] +WantedBy=timers.target |