forked from borgmatic-collective/docker-borgmatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry.sh
More file actions
23 lines (19 loc) · 650 Bytes
/
Copy pathentry.sh
File metadata and controls
23 lines (19 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#Variables
borgver=$(borg --version)
borgmaticver=$(borgmatic --version)
apprisever=$(apprise --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
#Software versions
echo borgmatic $borgmaticver
echo $borgver
echo apprise $apprisever
# Test crontab
supercronic -test /etc/borgmatic.d/crontab.txt || exit 1
# Start supercronic
if [ -n "${SUPERCRONIC_EXTRA_FLAGS}" ]; then
echo "The variable SUPERCRONIC_EXTRA_FLAGS is not empty, using extra flags"
supercronic $SUPERCRONIC_EXTRA_FLAGS /etc/borgmatic.d/crontab.txt
else
echo "The variable SUPERCRONIC_EXTRA_FLAGS is empty, starting normally"
supercronic /etc/borgmatic.d/crontab.txt
fi