Last active
August 29, 2015 14:00
-
-
Save typomedia/11378959 to your computer and use it in GitHub Desktop.
ZFS Dump Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2014 Typomedia Foundation. All rights reserved. | |
# Released under GPL version 3. | |
# | |
# ZFS Root Dump Script v1.0 | |
HOST=`hostname` | |
DEST=/dpool/backup/OpenIndiana | |
DATE=`date '+%Y%m%d'` | |
# get last snapshot | |
SNAP=`zfs list -t snapshot -o name -S creation | grep rpool | head -1` | |
zfs send $SNAP > $DEST/$HOST.openindiana-$DATE.zfsdump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment