1 Commits

Author SHA1 Message Date
b2bf3f2c9d Initial debian packaging. 2011-11-21 20:02:30 -06:00
8 changed files with 37 additions and 7 deletions

6
debian/changelog vendored Normal file
View File

@ -0,0 +1,6 @@
zfs-auto-snapshot (1.0.0) oneiric; urgency=low
* Initial release.
* Initial debian packaging.
-- Darik Horn <dajhorn@vanadac.com> Mon, 21 Nov 2011 20:01:19 -0600

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
7

16
debian/control vendored Normal file
View File

@ -0,0 +1,16 @@
Source: zfs-auto-snapshot
Section: admin
Priority: extra
Maintainer: Darik Horn <dajhorn@vanadac.com>
Build-Depends: debhelper (>= 7.4)
Standards-Version: 3.8.4
Homepage: http://www.zfsonlinux.org/
Vcs-Git: git://github.com/dajhorn/zfs-auto-snapshot.git
Vcs-Browser: https://github.com/dajhorn/zfs-auto-snapshot/
Package: zfs-auto-snapshot
Architecture: all
Depends: ${misc:Depends}, cron, zfsutils
Description: ZFS Automatic Snapshot Service
Automatically create and destroy ZFS snapshots on an hourly, daily, weekly
and monthly schedule.

1
debian/copyright vendored Normal file
View File

@ -0,0 +1 @@
Copyright 2011 Darik Horn <dajhorn@vanadac.com>

4
debian/rules vendored Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
dh $@

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=3
http://githubredir.debian.net/github/dajhorn/zfs-auto-snapshot/([\d\.].*).tar.gz

View File

@ -1,7 +1,8 @@
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
OPTIONS="--quiet --syslog"
*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 //
@hourly root zfs-auto-snapshot -q -g --label=hourly --keep=24 //
@daily root zfs-auto-snapshot -q -g --label=daily --keep=31 //
@weekly root zfs-auto-snapshot -q -g --label=weekly --keep=4 //
@monthly root zfs-auto-snapshot -q -g --label=monthly --keep=12 //
* */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 //

View File

@ -136,7 +136,7 @@ GETOPT=$(getopt \
--longoptions=default-exclude,dry-run,skip-scrub,recursive \
--longoptions=keep:,label:,prefix:,sep: \
--longoptions=debug,help,quiet,syslog,verbose \
--options=dnshl:k:rs:qgv \
--options=dnshl:k:rs:gv \
-- "$@" ) \
|| exit 1
@ -508,5 +508,4 @@ done
print_log notice "@$SNAPSHOT_NAME, \
$SNAPSHOT_COUNT created, $DESTRUCTION_COUNT destroyed, $WARNING_COUNT warnings."
exit 0
# }