Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction needed in “Restoring a Backup” section #35845

Open
diegomontanaduarte opened this issue Nov 20, 2024 · 1 comment
Open

Correction needed in “Restoring a Backup” section #35845

diegomontanaduarte opened this issue Nov 20, 2024 · 1 comment

Comments

@diegomontanaduarte
Copy link

Feedback

While attempting to restore my Home Assistant container from a backup, I encountered an issue with the command provided in the “Restoring a Backup” section.

The command in the documentation is as follows:

tar -xOf <backup_tar_file> "./homeassistant.tar.gz" | tar --strip-components=1 -zxf - -C <restore_directory>

When executed, this command fails with the following error:

tar: ./homeassistant.tar.gz: Not found in archive
tar: Exiting with failure status due to previous errors
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Upon inspecting the contents of the backup tar file using tar -tf, I noticed that homeassistant.tar.gz is listed without the ./ prefix. This discrepancy causes the extraction command to fail.

To resolve the issue, I suggest updating the command in the documentation to the following:

tar -xOf <backup_tar_file> "homeassistant.tar.gz" | tar --strip-components=1 -zxf - -C <restore_directory>

This corrected command properly handles the file path as listed in the archive and allows the restoration process to complete successfully.

URL

https://www.home-assistant.io/integrations/backup/

Version

2024.11.2

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (backup) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of backup can trigger bot actions by commenting:

  • @home-assistant close Closes the feedback.
  • @home-assistant rename Awesome new title Renames the feedback.
  • @home-assistant reopen Reopen the feedback.
  • @home-assistant unassign backup Removes the current integration label and assignees on the feedback, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information) to the feedback.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information) on the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant