9 lines
132 B
Bash
9 lines
132 B
Bash
|
#!/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
|