False start
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SNAPSHOT_NAME="restic-auto-$(date +%Y%m%d_%H%M%S)"
|
||||
echo "$SNAPSHOT_NAME" > /run/appdata_active_snapshot.txt
|
||||
|
||||
# 1. Take a recursive snapshot from the top-level tank/appdata parent
|
||||
zfs snapshot -r tank/appdata@"$SNAPSHOT_NAME"
|
||||
|
||||
# 2. Mount the parent snapshot to a temporary scratch directory
|
||||
mkdir -p /mnt/appdata-scratch
|
||||
mount -t zfs tank/appdata@"$SNAPSHOT_NAME" /mnt/appdata-scratch
|
||||
Reference in New Issue
Block a user