dy-dashboard/scripts/run_daily_backup_quiet.sh
2026-10-28 11:14:17 +08:00

13 lines
292 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -o pipefail
LOG=$(mktemp)
trap 'rm -f "$LOG"' EXIT
if bash /home/gxd/.openclaw/workspace/dy-dashboard/backup.sh >"$LOG" 2>&1; then
echo "本地每日备份成功"
else
code=$?
echo "本地每日备份失败(exit=$code)"
tail -n 30 "$LOG"
exit "$code"
fi