Skip to content

"backups" command in terminal doesn't behave the way help says it should #580

@robthebold

Description

@robthebold

Raspberry Pi 3B+, Home Assistant OS 14.2, core-2025.1.4 (thru OS 16.0 core 2024.7.2 supervisor 2025.01.1)

Using terminal on RaspPi or thru SSH the ha backups info command returns an error when called without an argument.

Debug information

  1. SSH Addon type
  • Community
  • Core
  • Custom
  1. Version of the CLI

CLI Version: GNU bash version 5.2.21(1)-release aarch64 alpine linux musl
Add-on: Current version: 9.18.0
Add-on version: Current version: 9.18.0

  1. Version of Home Assistant Core & the Home Assistant Supervisor

Home Assistant Core: 2025.7.2
Home Assistant Supervisor: 2025.07.1

  1. Output from executing the command with debug info
[core-ssh ~]$ ha --log-level debug backups info
DEBU[0000] Adding homedir to searchpath                  homedir=/root
INFO[0000] No configfile found                          
Error: accepts 1 arg(s), received 0
Usage:
  ha backups info [slug] [flags]

Aliases:
  info, in, inf

Examples:

  ha backups info c1a07617

Flags:
  -h, --help   help for info

Global Flags:
      --api-token string   Home Assistant Supervisor API token
      --config string      Optional config file (default is $HOME/.homeassistant.yaml)
      --endpoint string    Endpoint for Home Assistant Supervisor (default is 'supervisor')
      --log-level string   Log level (defaults to Warn)
      --no-progress        Disable the progress spinner
      --raw-json           Output raw JSON from the API

FATA[0000] Error while executing rootCmd: accepts 1 arg(s), received 0 
[core-ssh ~]$ 


Expected behavior

should list existing backups (or help should indicate that one arg is required)

Additional context

[core-ssh ~]$ ha --log-level debug backups info --help

When a Home Assistant backup is created, it will be available for restore.
This command gives you information about a specific backup.

Usage:
  ha backups info [slug] [flags]

Aliases:
  info, in, inf

Examples:

  ha backups info c1a07617

Flags:
  -h, --help   help for info

Global Flags:
      --api-token string   Home Assistant Supervisor API token
      --config string      Optional config file (default is $HOME/.homeassistant.yaml)
      --endpoint string    Endpoint for Home Assistant Supervisor (default is 'supervisor')
      --log-level string   Log level (defaults to Warn)
      --no-progress        Disable the progress spinner
      --raw-json           Output raw JSON from the API
[core-ssh ~]$ 

This was working as expected in the previous version I was using which I think was core-2025.1.3. I know because I had to use the CLI to list the available backups on a system with a failing SD card.

I should add that I filed this bug in "core" in February 2025, and the core team yesterday declared it not their issue and directed the bug to CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions