zfs-auto-snapshot/sample-auto-snapshot-instance.xml

83 lines
2.5 KiB
XML
Raw Normal View History

2008-06-29 19:31:10 +02:00
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
2008-06-29 19:32:47 +02:00
<!--
CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License, Version 1.0 only
(the "License"). You may not use this file except in compliance
with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]
CDDL HEADER END
-->
2008-06-29 19:33:28 +02:00
<service_bundle type='manifest' name='space-timf,mybackup'>
2008-06-29 19:31:10 +02:00
<service
name='system/filesystem/zfs/auto-snapshot'
type='service'
2008-06-29 19:34:18 +02:00
version='0.7'>
2008-06-29 19:31:10 +02:00
<create_default_instance enabled='false' />
2008-06-29 19:33:28 +02:00
<instance name='space-timf,mybackup' enabled='false' >
2008-06-29 19:31:10 +02:00
<exec_method
type='method'
name='start'
exec='/lib/svc/method/zfs-auto-snapshot start'
timeout_seconds='10' />
<exec_method
type='method'
name='stop'
exec='/lib/svc/method/zfs-auto-snapshot stop'
timeout_seconds='10' />
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient' />
</property_group>
<property_group name="zfs" type="application">
<propval name="fs-name" type="astring" value="space/timf"
override="true"/>
<propval name="interval" type="astring" value="minutes"
override="true"/>
<propval name="period" type="astring" value="30"
override="true"/>
<propval name="offset" type="astring" value="0"
override="true"/>
<propval name="keep" type="astring" value="all"
override="true"/>
<propval name="snapshot-children" type="boolean" value="false"
override="true"/>
2008-06-29 19:33:28 +02:00
<propval name="backup" type="astring" value="full"
override="true"/>
<propval name="backup-save-cmd" type="astring"
value="/usr/bin/ssh timf@usuki /usr/bin/pfexec /usr/sbin/zfs receive -d tank/backup"
override="true"/>
<propval name="backup-lock" type="astring" value="unlocked"
override="true"/>
<propval name="label" type="astring" value="mybackup"
override="true"/>
2008-06-29 19:31:10 +02:00
</property_group>
</instance>
<stability value='Unstable' />
</service>
</service_bundle>