sauvegardes/Plan Borg/bin/dobackup-local

11 lines
365 B
Plaintext
Raw Normal View History

2023-01-16 19:44:21 +01:00
#!/bin/bash
COMPUTER=$(hostname -s)
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