sauvegardes/bin/dobackup-local

11 lines
362 B
Plaintext
Raw Permalink Normal View History

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