#
# Aktionen, die vor dem create der Archive laufen sollen
#

if [ ${UID} != 0 ] || [ `id -g` != 0 ]
  then
    exit_on_error "/boot/all-Sicherung ohne root access `date`"
  fi

echo -e "Sichern der /boot/all-Partition\n${LINIE}"  >> ${LOG_FILE}       # ggf. eine Liste aus der Konfiguration abarbeiten

mkdir -p ${BOOTSICHERUNG}
datum="`date +%FT%T`"
tar -cvjf ${BOOTSICHERUNG}/boot_all_${datum}.tb2 /boot/all &>> ${LOG_FILE}     # /boto/all-Partition für restore sichern

echo "${LINIE}"  >> ${LOG_FILE}
