Skip to content

Commit 01ecb5e

Browse files
committed
No longer automatically add cron entries
1 parent d5cb31a commit 01ecb5e

File tree

7 files changed

+21
-29
lines changed

7 files changed

+21
-29
lines changed

Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ PREFIX := /usr/local
33
all:
44

55
install:
6-
install -d $(DESTDIR)/etc/cron.d
7-
install -d $(DESTDIR)/etc/cron.daily
8-
install -d $(DESTDIR)/etc/cron.hourly
9-
install -d $(DESTDIR)/etc/cron.weekly
10-
install -d $(DESTDIR)/etc/cron.monthly
11-
install -m 0644 etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
12-
install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot
13-
install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
14-
install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
15-
install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
166
install -d $(DESTDIR)$(PREFIX)/share/man/man8
177
install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
188
install -d $(DESTDIR)$(PREFIX)/sbin

README

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
1-
zfs-auto-snapshot:
1+
# zfs-auto-snapshot
22

33
An alternative implementation of the zfs-auto-snapshot service for Linux
4-
that is compatible with zfs-linux and zfs-fuse.
4+
that is compatible with [ZFS on Linux](http://zfsonlinux.org/).
55

6-
Automatically create, rotate, and destroy periodic ZFS snapshots. This is
7-
the utility that creates the @zfs-auto-snap_frequent, @zfs-auto-snap_hourly,
8-
@zfs-auto-snap_daily, @zfs-auto-snap_weekly, and @zfs-auto-snap_monthly
9-
snapshots if it is installed.
6+
My fork removes the automatic installation of cron entries that do things
7+
the user may not desire. This fork only installs the script and leaves manual
8+
crontab configuration up to the user.
109

1110
This program is a posixly correct bourne shell script. It depends only on
1211
the zfs utilities and cron, and can run in the dash shell.
1312

1413

1514
Installation:
1615
-------------
17-
16+
```
1817
wget https://github.com/zfsonlinux/zfs-auto-snapshot/archive/master.zip
1918
unzip master.zip
2019
cd zfs-auto-snapshot-master
21-
make install
20+
sudo make install
21+
```
22+
23+
24+
Example Crontab Entries:
25+
-------------
26+
```
27+
## ZFS Auto Snapshot
28+
29+
# At half past midnight every day, create a daily ZFS snapshot of 'archive'. Keep 7 of these.
30+
30 0 * * * /usr/local/sbin/zfs-auto-snapshot archive --recursive --quiet --syslog --prefix="auto" --label="daily" --keep=7
31+
32+
# At 1AM every Monday, create a weekly ZFS snapshot of 'archive'. Keep 4 of these.
33+
0 1 * * 1 /usr/local/sbin/zfs-auto-snapshot archive --recursive --quiet --syslog --prefix="auto" --label="weekly" --keep=4
34+
```

etc/zfs-auto-snapshot.cron.daily

Lines changed: 0 additions & 2 deletions
This file was deleted.

etc/zfs-auto-snapshot.cron.frequent

Lines changed: 0 additions & 3 deletions
This file was deleted.

etc/zfs-auto-snapshot.cron.hourly

Lines changed: 0 additions & 2 deletions
This file was deleted.

etc/zfs-auto-snapshot.cron.monthly

Lines changed: 0 additions & 2 deletions
This file was deleted.

etc/zfs-auto-snapshot.cron.weekly

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)