mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-16 07:38:12 +02:00
Compare commits
37 Commits
debian/1.0
...
zevo
Author | SHA1 | Date | |
---|---|---|---|
45edfd3e7c | |||
85dd8dad9a | |||
feea013d3c | |||
ad9a57eeaf | |||
82ff4b2f80 | |||
9bf3d5b017 | |||
ba171cc032 | |||
8b155cf4da | |||
d6c05fb8f4 | |||
4bbfa476b1 | |||
583fc20e28 | |||
2d789bdf1d | |||
8aaf5f904b | |||
6f91e10033 | |||
1099c622cb | |||
70632c00b7 | |||
90825db245 | |||
676ded6217 | |||
4d20aa4c79 | |||
cc9f1802ed | |||
d77af5a902 | |||
b5bf1149ca | |||
5fc395c2bb | |||
d99147db7a | |||
c8507a0da9 | |||
74359e51a7 | |||
afdae86271 | |||
4b7609791b | |||
5ce7a23384 | |||
2e26499f6a | |||
f7ceb28963 | |||
4c14da4130 | |||
249e6a4cb3 | |||
a0a43a42af | |||
d8b1730015 | |||
adebbd6fee | |||
5bdcaad4bf |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
.DS_Store
|
10
Makefile
10
Makefile
@ -2,6 +2,14 @@ all:
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(PREFIX)/etc/cron.d
|
||||
install etc/zfs-auto-snapshot.cron $(DESTDIR)$(PREFIX)/etc/cron.d/zfs-auto-snapshot
|
||||
install -d $(DESTDIR)$(PREFIX)/etc/cron.daily
|
||||
install -d $(DESTDIR)$(PREFIX)/etc/cron.hourly
|
||||
install -d $(DESTDIR)$(PREFIX)/etc/cron.weekly
|
||||
install -d $(DESTDIR)$(PREFIX)/etc/cron.monthly
|
||||
install etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)$(PREFIX)/etc/cron.d/zfs-auto-snapshot
|
||||
install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)$(PREFIX)/etc/cron.hourly/zfs-auto-snapshot
|
||||
install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)$(PREFIX)/etc/cron.daily/zfs-auto-snapshot
|
||||
install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)$(PREFIX)/etc/cron.weekly/zfs-auto-snapshot
|
||||
install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)$(PREFIX)/etc/cron.monthly/zfs-auto-snapshot
|
||||
install -d $(DESTDIR)$(PREFIX)/sbin
|
||||
install src/zfs-auto-snapshot.sh $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot
|
||||
|
12
README
12
README
@ -1,4 +1,14 @@
|
||||
An alternative implementation of the zfs-auto-snapshot service for Linux.
|
||||
zfs-auto-snapshot:
|
||||
|
||||
An alternative implementation of the zfs-auto-snapshot service for Macosx
|
||||
that is compatible with ZEVO community zfs.
|
||||
|
||||
Automatically create, rotate, and destroy periodic ZFS snapshots. This is
|
||||
the utility that creates the @zfs-auto-snap_frequent, @zfs-auto-snap_hourly,
|
||||
@zfs-auto-snap_daily, @zfs-auto-snap_weekly, and @zfs-auto-snap_monthly
|
||||
snapshots if it is installed.
|
||||
|
||||
It can backup to remote systems utilizing zfs send command.
|
||||
|
||||
This program is a posixly correct bourne shell script. It depends only on
|
||||
the zfs utilities and cron, and can run in the dash shell.
|
||||
|
@ -1,8 +0,0 @@
|
||||
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
||||
OPTIONS="--quiet --syslog"
|
||||
|
||||
* */4 * * * root zfs-auto-snapshot $OPTIONS --label=frequent --keep=4 //
|
||||
@hourly root zfs-auto-snapshot $OPTIONS --label=hourly --keep=24 //
|
||||
@daily root zfs-auto-snapshot $OPTIONS --label=daily --keep=31 //
|
||||
@weekly root zfs-auto-snapshot $OPTIONS --label=weekly --keep=4 //
|
||||
@monthly root zfs-auto-snapshot $OPTIONS --label=monthly --keep=12 //
|
2
etc/zfs-auto-snapshot.cron.daily
Normal file
2
etc/zfs-auto-snapshot.cron.daily
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|
3
etc/zfs-auto-snapshot.cron.frequent
Normal file
3
etc/zfs-auto-snapshot.cron.frequent
Normal file
@ -0,0 +1,3 @@
|
||||
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
||||
|
||||
*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 //
|
2
etc/zfs-auto-snapshot.cron.hourly
Normal file
2
etc/zfs-auto-snapshot.cron.hourly
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
|
2
etc/zfs-auto-snapshot.cron.monthly
Normal file
2
etc/zfs-auto-snapshot.cron.monthly
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
|
2
etc/zfs-auto-snapshot.cron.weekly
Normal file
2
etc/zfs-auto-snapshot.cron.weekly
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user