sudo rights for borg create

Closes #9
This commit is contained in:
Geoffrey Frogeye 2019-08-03 08:01:07 +02:00
parent 4e3fa8285b
commit 989e38e24a

View file

@ -220,7 +220,7 @@ do
BACKUP_OPTIONS="$BACKUP_OPTIONS --exclude=$exclude" BACKUP_OPTIONS="$BACKUP_OPTIONS --exclude=$exclude"
done done
$BORG_EXECUTABLE $BORG_OPTIONS create --stats $BACKUP_OPTIONS "${BORG_REPO}::${BACKUP_TAG}" ${BACKUP_FILES[@]} $EXPORT_FILES 2>&1 sudo -E $BORG_EXECUTABLE $BORG_OPTIONS create --stats $BACKUP_OPTIONS "${BORG_REPO}::${BACKUP_TAG}" ${BACKUP_FILES[@]} $EXPORT_FILES 2>&1
echo "→ Remove temporary files" echo "→ Remove temporary files"
rm -f $EXPORT_FILES rm -f $EXPORT_FILES