Commit c573dccc authored by Simone Piccardi's avatar Simone Piccardi
Browse files

Correzione

parent dff5f44b
......@@ -220,12 +220,13 @@ if [ ! $DISK ]; then
mail_exit 3
fi
umount $BASEDIR 2> /dev/null
# define borg backup destination
DESTINATION=$BASEDIR/$BACKUP_DIR
if mount $DISK $BASEDIR; then
[ -d $BASEDIR ] || mkdir -p $BASEDIR
umount $BASEDIR 2> /dev/null
if mount $DISK $BASEDIR; then
# init backup repository if no exists
if [ ! -d $DESTINATION ]; then
borg init --encryption=none $DESTINATION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment