Btrfs snapshot (incs) are now readonly

This commit is contained in:
Victor LABORIE 2017-05-17 16:20:48 +02:00
parent b7fedb5609
commit cc4bee52bd

2
bkctld
View file

@ -431,7 +431,7 @@ sub_inc() {
if [ ! -d "${inc}" ]; then
start=$(date +"%H:%M:%S")
if ( check_btrfs ); then
/sbin/btrfs subvolume snapshot ${JAILDIR}/$jail $inc > /dev/null
/sbin/btrfs subvolume snapshot -r ${JAILDIR}/$jail $inc > /dev/null
else
cp -alx ${JAILDIR}/${jail}/ $inc
fi