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

ancora messaggi

parent 14b5b3c6
......@@ -228,16 +228,17 @@ umount $BASEDIR 2> /dev/null
if mount $DISK $BASEDIR; then
echo "FUSS backup started at $(date +%R)"
echo "* dump su $DISK"
# init backup repository if no exists
if [ ! -d $DESTINATION ]; then
borg init --encryption=none $DESTINATION
fi
if [ -f /etc/fuss-backup/fuss-backup.exclude ]; then
echo "File di esclusione attivo"
echo "* File di esclusione attivo"
borg create --exclude-from=/etc/fuss-backup/fuss-backup.exclude \
$DESTINATION::{hostname}-{now:%Y-%m-%dT%H:%M:%S} $PATHS
else
echo "File di esclusione non attivo"
echo "* File di esclusione non attivo"
borg create \
$DESTINATION::{hostname}-{now:%Y-%m-%dT%H:%M:%S} $PATHS
fi
......
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