FreeBSD Bugzilla – Attachment 110857 Details for
Bug 152065
New port sysutils/zfs-periodic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 4.48 KB, created by
peter
on 2010-11-08 20:50:08 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
peter
Created:
2010-11-08 20:50:08 UTC
Size:
4.48 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># zfs-periodic/Makefile ># zfs-periodic/distinfo ># zfs-periodic/pkg-descr ># zfs-periodic/pkg-plist ># >echo x - zfs-periodic/Makefile >sed 's/^X//' >zfs-periodic/Makefile << '172ebffb35b14b4a9732d26abac63c85' >X# New ports collection makefile for: zfs-periodic >X# Date created: 8 November 2010 >X# Whom: Peter Ankerstal <peter@pean.org> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= zfs-periodic >XPORTVERSION= 1.0 >XCATEGORIES= sysutils >XMASTER_SITES= http://www.pean.org/zfs-periodic/ >X >XMAINTAINER= peter@pean.org >XCOMMENT= Simple way of maitaining zfs snapshots using the default periodic system >X >XNO_BUILD= yes >X >Xpost-patch: >X @ ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ >X ${WRKSRC}/etc/periodic/hourly/000.zfs-snapshot >X @ ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ >X ${WRKSRC}/etc/periodic/daily/000.zfs-snapshot >X @ ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ >X ${WRKSRC}/etc/periodic/weekly/000.zfs-snapshot >X @ ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ >X ${WRKSRC}/etc/periodic/monthly/000.zfs-snapshot >X @ ${REINPLACE_CMD} -e "s|/etc/periodic/zfs-snapshot|${PREFIX}/bin/zfs-snapshot|" \ >X ${WRKSRC}/etc/periodic/monthly/998.zfs-scrub >X >X >Xdo-install: >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/zfs-snapshot ${PREFIX}/bin >X ${MKDIR} ${PREFIX}/etc/periodic/hourly >X ${MKDIR} ${PREFIX}/etc/periodic/daily >X ${MKDIR} ${PREFIX}/etc/periodic/weekly >X ${MKDIR} ${PREFIX}/etc/periodic/monthly >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/hourly/000.zfs-snapshot ${PREFIX}/etc/periodic/hourly/000.zfs-snapshot >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/000.zfs-snapshot ${PREFIX}/etc/periodic/daily/000.zfs-snapshot >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/weekly/000.zfs-snapshot ${PREFIX}/etc/periodic/weekly/000.zfs-snapshot >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/monthly/000.zfs-snapshot ${PREFIX}/etc/periodic/monthly/000.zfs-snapshot >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/monthly/998.zfs-scrub ${PREFIX}/etc/periodic/monthly/998.zfs-scrub >X >Xpost-install: >X @ ${ECHO_MSG} >X @ ${ECHO_MSG} " In order to enable periodic snapshots you need" >X @ ${ECHO_MSG} " to add these lines to your /etc/periodic.conf" >X @ ${ECHO_MSG} >X @ ${ECHO_MSG} ' hourly_output="root"' >X @ ${ECHO_MSG} ' hourly_show_success="NO"' >X @ ${ECHO_MSG} ' hourly_show_info="YES"' >X @ ${ECHO_MSG} ' hourly_show_badconfig="NO"' >X @ ${ECHO_MSG} ' hourly_zfs_snapshot_enable="YES"' >X @ ${ECHO_MSG} ' hourly_zfs_snapshot_pools="tank"' >X @ ${ECHO_MSG} ' hourly_zfs_snapshot_keep=6' >X @ ${ECHO_MSG} ' daily_zfs_snapshot_enable="YES"' >X @ ${ECHO_MSG} ' daily_zfs_snapshot_pools="tank"' >X @ ${ECHO_MSG} ' daily_zfs_snapshot_keep=7' >X @ ${ECHO_MSG} ' weekly_zfs_snapshot_enable="YES"' >X @ ${ECHO_MSG} ' weekly_zfs_snapshot_pools="tank"' >X @ ${ECHO_MSG} ' weekly_zfs_snapshot_keep=5' >X @ ${ECHO_MSG} ' monthly_zfs_snapshot_enable="YES"' >X @ ${ECHO_MSG} ' monthly_zfs_scrub_enable="YES"' >X @ ${ECHO_MSG} ' monthly_zfs_scrub_pools="tank"' >X @ ${ECHO_MSG} ' monthly_zfs_snapshot_pools="tank"' >X @ ${ECHO_MSG} ' monthly_zfs_snapshot_keep=2' >X.include <bsd.port.mk> >172ebffb35b14b4a9732d26abac63c85 >echo x - zfs-periodic/distinfo >sed 's/^X//' >zfs-periodic/distinfo << '2cf28a082b20a4d64dd8f882fcc55d6a' >XMD5 (zfs-periodic-1.0.tar.gz) = cf042d7b91af5c4360cd57ec254a27ab >XSHA256 (zfs-periodic-1.0.tar.gz) = 3a15951d9f4c1f9b1bdf6bf5f53d48967c1681a13d9e1a16a10314160f563f0c >XSIZE (zfs-periodic-1.0.tar.gz) = 2506 >2cf28a082b20a4d64dd8f882fcc55d6a >echo x - zfs-periodic/pkg-descr >sed 's/^X//' >zfs-periodic/pkg-descr << '7404e77cf6f51fd4628ca72ec1ae1121' >XScripts that uses the the default periodic system to make an manage zfs >Xsnapshots. Easily configured via /etc/periodic.conf >X >XWWW: http://www.neces.com/blog/technology/integrating-freebsd-zfs-and-periodic-snapshots-and-scrubs >7404e77cf6f51fd4628ca72ec1ae1121 >echo x - zfs-periodic/pkg-plist >sed 's/^X//' >zfs-periodic/pkg-plist << '49fe1b9d24942372734203ce4641f88f' >Xbin/zfs-snapshot >Xetc/periodic/hourly/000.zfs-snapshot >Xetc/periodic/daily/000.zfs-snapshot >Xetc/periodic/weekly/000.zfs-snapshot >Xetc/periodic/monthly/000.zfs-snapshot >Xetc/periodic/monthly/998.zfs-scrub >49fe1b9d24942372734203ce4641f88f >exit
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 152065
: 110857