Skip to content

Commit 2e1f309

Browse files
author
Jonathan Carter
authored
Merge pull request #68 from lindhe/fix-broken-cron
Fix broken cron scripts
2 parents 9c6f065 + 739972f commit 2e1f309

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

etc/zfs-auto-snapshot.cron.daily

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
# Only call zfs-auto-snapshot if it's available
4-
exec which zfs-auto-snapshot > /dev/null && \
5-
zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
4+
which zfs-auto-snapshot > /dev/null && \
5+
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //

etc/zfs-auto-snapshot.cron.hourly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
# Only call zfs-auto-snapshot if it's available
4-
exec which zfs-auto-snapshot > /dev/null && \
5-
zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
4+
which zfs-auto-snapshot > /dev/null && \
5+
exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //

etc/zfs-auto-snapshot.cron.monthly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
# Only call zfs-auto-snapshot if it's available
4-
exec which zfs-auto-snapshot > /dev/null && \
5-
zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
4+
which zfs-auto-snapshot > /dev/null && \
5+
exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //

etc/zfs-auto-snapshot.cron.weekly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
# Only call zfs-auto-snapshot if it's available
4-
exec which zfs-auto-snapshot > /dev/null && \
5-
zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
4+
which zfs-auto-snapshot > /dev/null && \
5+
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //

0 commit comments

Comments
 (0)