Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 348570 Details for
Bug 437636
app-backup/zfs-auto-snapshot - Automatically create, rotate, and destroy periodic ZFS snapshots
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild support default-exclude by default
zfs-auto-snapshot-9999-r1.ebuild (text/plain), 1.75 KB, created by
Joe Chen
on 2013-05-17 22:57:44 UTC
(
hide
)
Description:
ebuild support default-exclude by default
Filename:
MIME Type:
Creator:
Joe Chen
Created:
2013-05-17 22:57:44 UTC
Size:
1.75 KB
patch
obsolete
># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=4 > >EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git" > >inherit git-2 > >DESCRIPTION="Automatic snapshots for ZFS on Linux" >HOMEPAGE="https://github.com/dajhorn/zfs-auto-snapshot/" >LICENSE="GPL-2" >KEYWORDS="amd64" >SLOT="0" >IUSE="+default-exclude" >DEPEND="" >RDEPEND="sys-fs/zfs > virtual/cron" > >DOCS=( README ) > >src_install() { > default > > use default-exclude && for cronfile in /etc/cron.{d,daily,hourly,monthly,weekly}/${PN} ; do > einfo "adjust $cronfile ..." > sed -i "s/\(${PN}\)/\1 --default-exclude/" ${D}/$cronfile || die > done > # Remove execute flag for crontab files > fperms a-x /etc/cron.d/${PN} >} >pkg_postinst() { > use default-exclude || ewarn "without use default-exclude. all zfs filesystem will under all kind of snapshot." > elog "use attribute com.sun:auto-snapshot to decide which filesystem to" > elog "make snapshot. the rule is:" > elog "zfs set com.sun:auto-snapshot=[true|false]" > elog "or" > elog "zfs set com.sun:auto-snapshot:<frequent|hourly|daily|weekly|monthly>=[true|false]" > elog > elog "ex." > elog "# zfs set com.sun:auto-snapshot=false rpool" > elog "# zfs set com.sun:auto-snapshot=true rpool" > elog "# zfs set com.sun:auto-snapshot:weekly=true rpool" > elog > elog "for detail pls visit http://docs.oracle.com/cd/E19082-01/817-2271/ghzuk/" > elog > ewarn "if you are using fcron as system crontab. frequent snapshot may not" > ewarn "work. you should add below setting to job list by execute" > ewarn "'fcrontab -e' manually:" > use default-exclude && \ > ewarn "*/15 * * * * zfs-auto-snapshot --default-exclude -q -g --label=frequent --keep=4 //" || \ > ewarn "*/15 * * * * zfs-auto-snapshot -q -g --label=frequent --keep=4 //" > elog > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 437636
:
326038
|
327462
| 348570