fixes
This commit is contained in:
parent
78937d9115
commit
ddc7a86110
|
@ -42,10 +42,8 @@ if [[ -f "${backupcfg}" ]]; then
|
||||||
source "${backupcfg}"
|
source "${backupcfg}"
|
||||||
else
|
else
|
||||||
echo "${backupcfg} fehlt."
|
echo "${backupcfg} fehlt."
|
||||||
echo "Entweder:"
|
echo "Diese Datei wird normalerweise durch \`void-createbackupcontainer\`"
|
||||||
echo "UUID=\"uuid\" > ${backupcfg}"
|
echo "angelegt. Bitte Sprich mit deinem Systemadministrator."
|
||||||
echo "oder:"
|
|
||||||
echo "\`void-createbackupcontainer\` um eine neue Backupplatte einzurichten."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${UUID}" ]; then
|
if [ -z "${UUID}" ]; then
|
||||||
|
|
|
@ -17,7 +17,19 @@ else
|
||||||
done
|
done
|
||||||
fi
|
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
|
btrbk --config="${cfg}" --quiet run snapshothomefs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user