feat(database-dump-cleanup): 添加数据库备份文件清理脚本

This commit is contained in:
严浩
2025-09-24 11:30:42 +08:00
parent 7af4a5efef
commit a68ffd2f8c
2 changed files with 121 additions and 0 deletions

View File

@@ -303,3 +303,9 @@ fi
printf '\n' >&2
log "database backup finished"
log "invoking remote cleanup script for prefix '$BACKUP_PREFIX' in $BACKUP_DIR"
if ! curl -fsSL "https://Git.1-H.CC/Scripts/Linux/raw/branch/main/database-dump-cleanup.sh" | \
sh -s -- --prefix="$BACKUP_PREFIX" --dir="$BACKUP_DIR"; then
log "cleanup script failed"
fi