forked from zfsonlinux/zfs-auto-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
falsandtru
committed
May 4, 2015
1 parent
7eb9d2d
commit 4fd2efc
Showing
5 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" | ||
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // | ||
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin" | ||
|
||
*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 // | ||
*/15 * * * * root /usr/local/sbin/zfs-auto-snapshot -q -g --label=frequent --keep=4 // | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" | ||
exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // | ||
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" | ||
exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // | ||
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" | ||
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // | ||
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // |
What about making it depend on
DESTDIR
/PREFIX
?@dajhorn Would using sed in the makefile for this be a good idea?