mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-19 14:22:57 +02:00
12 lines
333 B
Plaintext
Executable File
12 lines
333 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
lastrunfile="/tmp/pbs_client_lastrun"
|
|
|
|
# First run touches the file. Backups will set the date.
|
|
# -s checks if the file exists and is not empty.
|
|
if [ -s "$lastrunfile" ]; then
|
|
cat "$lastrunfile"
|
|
else
|
|
echo "The first backup since container start has not happened yet."
|
|
fi |