From 0215153fc55eb0fb0d44accc74bca709bcc228c5 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 7 Oct 2025 10:10:13 +0300 Subject: [PATCH] Migrate prod:prune-backups to standalone script --- mise.toml | 5 ----- scripts/prod/prune-backups | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 scripts/prod/prune-backups diff --git a/mise.toml b/mise.toml index 63c4649f..c66cf55f 100644 --- a/mise.toml +++ b/mise.toml @@ -28,11 +28,6 @@ run = "gh run watch" description = 'Open an ssh console to the production env' run = 'ssh music-library-prod' -[tasks."prod:prune-backups"] -confirm = 'Are you sure you want to delete all downloaded database backups?' -description = 'Deletes all downloaded database backups' -run = 'rm data/music_library_prod*' - [tasks."prod:test"] description = 'Run HTTP tests against production' run = 'hurl --test test/prod.hurl' diff --git a/scripts/prod/prune-backups b/scripts/prod/prune-backups new file mode 100755 index 00000000..d3d5f061 --- /dev/null +++ b/scripts/prod/prune-backups @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +#MISE description="Remove locally downloaded production database backups" +#MISE confirm="Are you sure you want to remove all backups?" + +set -e + +rm data/music_library_prod*