mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-19 08:52:02 +02:00
Fix broken cron scripts
I found that none of the daily, hourly, weekly or monthly snapshots were
being taken. When I looked into it I found that the scripts didn't
execute properly, because of the newly introduced check (9c6f065
).
I'm not versed enough with POSIX to understand if there was some clever
intention with using exec than just calling which by it self, but it
works without exec so I removed it.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Only call zfs-auto-snapshot if it's available
|
# Only call zfs-auto-snapshot if it's available
|
||||||
exec which zfs-auto-snapshot > /dev/null && \
|
which zfs-auto-snapshot > /dev/null && \
|
||||||
zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|
zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Only call zfs-auto-snapshot if it's available
|
# Only call zfs-auto-snapshot if it's available
|
||||||
exec which zfs-auto-snapshot > /dev/null && \
|
which zfs-auto-snapshot > /dev/null && \
|
||||||
zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
|
zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Only call zfs-auto-snapshot if it's available
|
# Only call zfs-auto-snapshot if it's available
|
||||||
exec which zfs-auto-snapshot > /dev/null && \
|
which zfs-auto-snapshot > /dev/null && \
|
||||||
zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
|
zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Only call zfs-auto-snapshot if it's available
|
# Only call zfs-auto-snapshot if it's available
|
||||||
exec which zfs-auto-snapshot > /dev/null && \
|
which zfs-auto-snapshot > /dev/null && \
|
||||||
zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|
zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|
||||||
|
Reference in New Issue
Block a user