pbs-client-docker/docker/src/helper_scripts/lastbackup
2024-03-26 22:53:10 +00:00

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