sauvegardes/Plan Borg/bin/dobackup-local

11 lines
362 B
Bash
Executable File

#!/bin/bash
COMPUTER=$(hostname)
CONFIG="/etc/borgmatic.d/$COMPUTER.yaml"
if [ -f "$CONFIG" ]; then
echo "=================================================================="
echo "=== BORG $COMPUTER started at $(date)"
borgmatic -c $CONFIG create $OPTIONS --stats --verbosity 1 --syslog-verbosity 1
echo "=== BORG $COMPUTER ended at $(date)"
fi