This commit is contained in:
teldra 2021-04-18 12:16:11 +02:00
parent 8c0ffdb5f2
commit 388f44889f
2 changed files with 5 additions and 1 deletions

View File

@ -139,7 +139,7 @@ if mountpoint -q /var/lib/backup/quelle/bootfs; then
fi
mkdir -p "/var/lib/backup/ziel/void/{rootfs,homefs}"
for t in backuprootfs "${backupbootfs}"; do
for t in backuphomefs backuprootfs "${backupbootfs}"; do
if [[ "${t}" ]]; then
if ! btrbk --config="${cfg}" --progress --quiet run "${t}"; then
btrbk --config="${cfg}" --progress --quiet clean

View File

@ -17,6 +17,10 @@ else
done
fi
if [[ "${1}" == "homefs" ]]; then
btrbk --config="${cfg}" --quiet run snapshothomefs
fi
if ! sudo update-grub 2> /dev/null; then
echo update-grub failed
fi