Dienstag Okt 02, 2007

Using Tim's ZFS Automatic Backup 0.1

Automatic backups of ZFS filesystems - Tim Foster's  zfs-auto-backup. This is really cool and now available as a SVR4 package.

Usage:
Just plug in your USB-stick or USB-Disk and if the Name (=Label) of the media matches the one preconfigured in a SMF-property, the full- or differential backup starts automagically.

If you like to try use this yourself on OpenSolaris, you may install the scripts manually as Tim describes in his blog or use this SVR4 package download: SFEzfs-auto-backup.pkg. The package is build from Tim's zfs-auto-backup-0.1.tar.gz with the Common Build Environment (CBE)

Installation:
install the package: (prepend "pfexec" if your userid owns the RBAC profile "Software Installation";)

pkgadd -d SFEzfs-auto-backup.pkg 

then plug in your USB-media and look into /media which label-name your media has. For example "NO NAME" (be carefull, you might have more then one of this label...) or "MANUFNAME". Take this name and register it as your backup-media:

svccfg -s svc:/system/filesystem/zfs/auto-backup \\
setprop zfs/volume = astring: "MANUFNAME"

Then add a new user-defined attribute to your zfs filesystems to be backuped: (replace "zfs/tmp" with your filesystem, beware of recursion!) 

zfs set com.sun:auto-backup=true zfs/tmp

If you like verbose logging of theSMF service:

svccfg -s svc:/system/filesystem/zfs/auto-backup \\
setprop zfs/verbose = boolean: true
tail -f "/var/svc/log/system-filesystem-zfs-auto-backup:default.log"


 

About

what's cool?

Search

Categories
Archives
« April 2014
MoDiMiDoFrSaSo
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Heute