Skip to content

Instantly share code, notes, and snippets.

@alcir
alcir / config.log
Created March 11, 2015 13:50
watchman config.log smartos
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by watchman configure 3.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
@alcir
alcir / snapshotzfs.sh
Created July 9, 2017 05:12
Sample backup script using ZFS snapshot
#!/bin/bash
SCRIPTPATH=$(cd "$(dirname "$0")" && pwd)
ZFSFILESYSTEM=zpool_tank/my_backups
ZFSMOUNTPOINT=/zpool_tank/my_backups
TODAY=`date +%Y%m%d`
YESTERDAY=`date --date="1 days ago" +%Y%m%d`
ERROR=0