psc-per-vm/psc_cron
Thomas Peterson 2de6d926c1 Update 4 files
- /mk_docker.py
- /psc_cron
- /borgmatic.conf
- /borgmatic
2024-01-31 17:10:21 +00:00

12 lines
265 B
Bash

#!/bin/bash
if [ -f "/usr/bin/borgmatic" ]; then
echo '<<<psc_cron>>>'
BMCMD="$(docker logs psc_cron_1 --tail=1 | grep -P '\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d' -o)"
if [ $? -eq 0 ]; then
D=$(date -d "$BMCMD" "+%s")
echo "$D"
else
echo "0"
fi
fi