Skip to content

Installation

Install B4 Backup

Preconditions

You need the following to be able to use B4 Backup properly:

  • Python 3.12 or higher
  • A btrfs partition on the machine you want to backup and your backup destination.
  • btrfs-progs
sudo apt install btrfs-progs
sudo yum install btrfs-progs
  1. Install pipx
sudo apt install pipx
sudo yum install pipx
  1. Install B4 Backup (Fill in token and name)

    pipx install b4-backup
    
  2. Next steps

Using poetry (for developers)

  1. Install poetry

  2. Clone the repository

  3. Setup poetry environment:

    cd <path_to_repo>
    

    Finally, install the package with poetry:

    poetry install
    
  4. Next steps

    Just switch into the poetry environment using poetry shell.

Update B4 Backup

Using pipx

Similar to the installation, you upgrade B4 Backup like this:

pipx upgrade b4-backup

Using poetry

cd <path_to_repo>
git pull
poetry install

Uninstall B4 Backup

Using pipx

pipx uninstall b4-backup

Using poetry

It's technically never installed, but you can remove it like that:

cd <path_to_repo>
poetry env list
# Delete every environment using
poetry env remove <env_name>
cd ..
rm -rf b4_backup