Add logging

This commit is contained in:
Salt 2025-01-19 12:51:15 -06:00
parent c9984c448c
commit 0ffd8ef535

View File

@ -91,8 +91,10 @@ if [ -n "${DIRS[*]}" ]; then
{% endfor %} {% endfor %}
echo "Will upload resultant backups to {{ backup_s3_bucket }}" echo "Will upload resultant backups to {{ backup_s3_bucket }}"
if command -v restic > /dev/null 2>&1; then if command -v restic > /dev/null 2>&1; then
echo "Using restic for backups"
backup ${DIRS[*]} backup ${DIRS[*]}
else else
echo "Using rudimentary tar and S3 for backups"
for dir in "${DIRS[@]}"; do for dir in "${DIRS[@]}"; do
if [ "$dir" == "/data" ]; then if [ "$dir" == "/data" ]; then
for datadir in "$dir"/*; do for datadir in "$dir"/*; do