scripts/snapshot-rootfs.sh

9 lines
132 B
Bash
Executable File

#!/usr/bin/bash
VG=vg0
ROOTFS=rootfs-arch
SZ=10G
DATE=`date +%Y%m%dT%H%M`
lvcreate -n $ROOTFS-$DATE --snapshot -L $SZ $VG/$ROOTFS