Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When upgrading, install.sh script removes first the installed version before ensuring the new one is even ready to download #1218

@alfanick

Description

@alfanick

Note: if you have a question or need support please post in the discussions area.

Describe the bug
v1.13.0 was just released, since I have some spare cycles, I wanted to update. However, I think CI did not yet publish Linux versions for v1.13.0, in the effect, running install.sh removed my current installation, but fails installing v1.13.0, as it's not there yet. It's a race condition, probably in few hours will work as expected. However to make the process robust, install.sh should first try to download latest version, before removing the previous one.

To Reproduce
Steps to reproduce the behavior:

  1. Have some previous version of backrest installed.
  2. Run curl -fsSL https://raw.githubusercontent.com/garethgeorge/backrest/main/install.sh | bash to upgrade
  3. Observe removal of previous version.
  4. Observe failure to download latest version.
  5. Wait and repeat.

Expected behavior
Upgrade is safe and does not remove the previous installed version unless the new one is actually ready for download.

Screenshots
N/A

Platform Info

  • Linux neptun 6.19.13-1-liquorix-amd64 Implement the operation log #1 ZEN SMP PREEMPT liquorix 6.19-10ubuntu1~noble (2026-04-20) x86_64 x86_64 x86_64 GNU/Linux
  • Backrest v1.11.2 -> v1.13.0

Additional context
Race in new-release process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions