diff --git a/scripts/prod-backup.sh b/mise-tasks/prod/backup similarity index 85% rename from scripts/prod-backup.sh rename to mise-tasks/prod/backup index a2475871..0e82c641 100755 --- a/scripts/prod-backup.sh +++ b/mise-tasks/prod/backup @@ -1,5 +1,7 @@ #!/usr/bin/env bash +#MISE description="Backup the production database to the local development env" + set -e current_date=$(date +%s) diff --git a/mise.toml b/mise.toml index a2f7ea93..5adc10ad 100644 --- a/mise.toml +++ b/mise.toml @@ -140,10 +140,6 @@ run = "gh run watch" description = 'Open an ssh console to the production env' run = 'ssh music-library-prod' -[tasks."prod:backup"] -description = 'Backup the production database to the local development env' -run = 'scripts/prod-backup.sh' - [tasks."prod:prune-backups"] confirm = 'Are you sure you want to delete all downloaded database backups?' description = 'Deletes all downloaded database backups'