This commit is contained in:
teldra 2021-04-18 15:30:09 +02:00
parent 78937d9115
commit ddc7a86110
2 changed files with 15 additions and 5 deletions

View File

@ -42,10 +42,8 @@ if [[ -f "${backupcfg}" ]]; then
source "${backupcfg}"
else
echo "${backupcfg} fehlt."
echo "Entweder:"
echo "UUID=\"uuid\" > ${backupcfg}"
echo "oder:"
echo "\`void-createbackupcontainer\` um eine neue Backupplatte einzurichten."
echo "Diese Datei wird normalerweise durch \`void-createbackupcontainer\`"
echo "angelegt. Bitte Sprich mit deinem Systemadministrator."
fi
if [ -z "${UUID}" ]; then

View File

@ -17,7 +17,19 @@ else
done
fi
if [[ "${1}" == "homefs" ]]; then
if [[ ! $- == *i* ]]; then
if [[ ! "${1}" == "home" ]]; then
echo "Private Daten wurden nicht snapshotted."
echo '`void-snaptshot home` um dieses mit zu snapshotten.'
if ! grep "#void.system" /var/spool/cron/root | grep -q "home"; then
echo "Folgender Befehl um das dauerhaft regelmässig zu machen."
echo '`sudo sed -i "s/t #/t home #/" /var/spool/cron/root`'
fi
fi
fi
if [[ "${1}" == "home" ]]; then
btrbk --config="${cfg}" --quiet run snapshothomefs
fi