mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-17 16:11:19 +02:00
Compare commits
6 Commits
upstream/1
...
upstream/1
Author | SHA1 | Date | |
---|---|---|---|
277287f824 | |||
d49be6a2de | |||
2e1f309131 | |||
1666623191 | |||
739972f18a | |||
8c45add2c0 |
@ -1,5 +1,6 @@
|
|||||||
#!/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 || exit 0
|
||||||
zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|
|
||||||
|
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
|
PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
|
||||||
|
|
||||||
*/15 * * * * root which zfs-auto-snapshot > /dev/null && zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
|
*/15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/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 || exit 0
|
||||||
zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
|
|
||||||
|
exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/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 || exit 0
|
||||||
zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
|
|
||||||
|
exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/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 || exit 0
|
||||||
zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|
|
||||||
|
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|
||||||
|
@ -110,7 +110,7 @@ print_log () # level, message, ...
|
|||||||
;;
|
;;
|
||||||
(inf*)
|
(inf*)
|
||||||
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.info $*
|
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.info $*
|
||||||
test -n "$opt_verbose" && echo $*
|
test -z ${opt_quiet+x} && test -n "$opt_verbose" && echo $*
|
||||||
;;
|
;;
|
||||||
(deb*)
|
(deb*)
|
||||||
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.debug $*
|
# test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.debug $*
|
||||||
|
Reference in New Issue
Block a user