This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# Runs a command wrapped with snapper pre-post snapshots for btrfs subvolumes. | |
# Usage: snp [-c config1,config2,...] <command> | |
# Constants | |
readonly LOG_PATH='/var/local/log/snp' | |
readonly DATE="$(date +'%Y-%m-%d-%H%M%S')" | |
readonly LOG_FILE="${LOG_PATH}/snp-${DATE}.log" |
This file contains hidden or 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
# | |
# Snap is a utility to create system snapshots for btrfs subvolumes. | |
# | |
# @author Mubeen Iqbal | |
# @date 2014-11-26 | |
# @license GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
# | |
#!/bin/sh |
NewerOlder