This commit is contained in:
teldra 2021-05-08 17:42:37 +02:00
parent 15a45694b6
commit 2266b5c050

View File

@ -37,27 +37,6 @@ do
esac
done
if [[ -f /etc/btrbk/btrbk.conf ]]; then
function finish {
sync
if [ "${poweroff}" = "y" ]; then
shutdown -h now
fi
sleep 4
echo "FERTIG"
rm -rf /tmp/backup
}
trap finish EXIT
if ! btrbk --progress --quiet run backup; then
btrbk --progress --quiet clean
echo "Wegen Fehler nicht herunterfahren."
poweroff=n
echo "fail: btrbk --progress --quiet run backup"
fi
exit
fi
if [[ -f "${backupcfg}" ]]; then
source "${backupcfg}"
else