Skip to content

Commit 5027df7

Browse files
committed
update documentation and (c) 2013
It could still use further improvement, but at least note that you'll probably need to zfs allow userprop, etc.
1 parent 076894e commit 5027df7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README

+8-5
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,21 @@ zfs-auto-snapshot, namely:
2626
old snapshots there.
2727

2828
PREREQUISITES:
29-
1. zfs-auto-snapshot package installed locally and at least hourly
30-
snapshots enabled (or daily, etc.)
29+
1. zfs-auto-snapshot or equivalent package installed locally and regular
30+
snapshots enabled (hourly, daily, etc.)
3131
2. home directory set for zfssnap role
3232
3. ssh keys set up between zfssnap@localhost and remuser@remhost
3333
4. zfs allow done for remuser on remhost
3434
(see http://mail.opensolaris.org/pipermail/zfs-auto-snapshot/2009-November/000198.html
35-
for guidance on #2-4)
35+
for guidance on #2-4; you may need to also allow further permissions such as
36+
sharenfs, userprop, hold, etc.)
3637
5. an initial (full) zfs send/receive done so that remhost has the fs we
3738
are backing up, and the associated snapshots -- something like:
3839
zfs send -R $POOL/$FS@zfs-auto-snap_daily-(latest) | ssh $REMUSER@$REMHOST zfs recv -dvF $REMPOOL
39-
6. configure the pool/fs/user/host variables in this script
40-
7. zfs set $PROP={ fullpath | basename } pool/fs
40+
6. zfs allow any additional permissions needed, to fix any errors produced in step 5
41+
7. configure the tag/prop/remuser/remhost/rempool variables in this script or in a config file
42+
(and update the CFG=... line accordingly)
43+
8. zfs set $PROP={ fullpath | basename } pool/fs
4144
for each FS or volume you wish to back up.
4245

4346
PROPERTY VALUES:

zfs-backup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# SMF manifests welcome!
88
# v0.2 - multiple datasets
99

10-
# Copyright (c) 2009-12 Andrew Daugherity <[email protected]>
10+
# Copyright (c) 2009-13 Andrew Daugherity <[email protected]>
1111
# All rights reserved.
1212
#
1313
# Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)