Getting started

Getting started

Installation

Linux and macOS

curl -fsSL https://glesha.toxdes.com/install | sh

Detects amd64/arm64 and installs the executable and manpages into ~/.local. Add ~/.local/bin to PATH.

# Choose a version.
curl -fsSL https://glesha.toxdes.com/install | sh -s -- --version 0.5.1
# Choose a prefix; --prefix overrides INSTALL_PREFIX.
curl -fsSL https://glesha.toxdes.com/install | INSTALL_PREFIX="$HOME/.local" sh
# Install system-wide.
curl -fsSL https://glesha.toxdes.com/install -o /tmp/glesha-install
sudo sh /tmp/glesha-install --prefix /usr/local

macOS and package-manager releases start at v0.5.1. Releases are managed with yesb.

Homebrew

brew install toxdes/tap/glesha

Debian / Ubuntu

Subscribe to the shared toxdes repository once:

curl -fsSL https://packages.toxdes.com/apt/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/toxdes.gpg
echo 'deb [signed-by=/usr/share/keyrings/toxdes.gpg] https://packages.toxdes.com/apt stable main' | sudo tee /etc/apt/sources.list.d/toxdes.list
sudo apt update
sudo apt install glesha

Fedora / RHEL

sudo tee /etc/yum.repos.d/toxdes.repo <<'EOF'
[toxdes]
name=Toxdes
baseurl=https://packages.toxdes.com/rpm
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.toxdes.com/rpm/pubkey.gpg
EOF
sudo dnf install glesha

Already subscribed to toxdes? Run only the install command.

Arch Linux (AUR)

yay -S glesha-bin
# Or build the latest source.
yay -S glesha-git

Windows and manual downloads

Download a bundle, its adjacent .sha256, and follow the included install.txt.

SystemBundle
Linux x64glesha_0.5.1_amd64.tar.gz
Linux arm64glesha_0.5.1_arm64.tar.gz
macOS Intelglesha_0.5.1_macos_amd64.tar.gz
macOS Apple Siliconglesha_0.5.1_macos_arm64.tar.gz
Windows x64glesha_0.5.1_windows_amd64.zip

On Windows, verify the checksum, extract, and put bin\glesha.exe on PATH.

Get-FileHash .\glesha_0.5.1_windows_amd64.zip -Algorithm SHA256
Get-Content .\glesha_0.5.1_windows_amd64.zip.sha256
Expand-Archive .\glesha_0.5.1_windows_amd64.zip -DestinationPath .\glesha

Uninstall a script installation

curl -fsSL https://glesha.toxdes.com/install | sh -s -- --uninstall
# Use the same prefix as installation.
curl -fsSL https://glesha.toxdes.com/install | sh -s -- --uninstall --prefix /custom/path

Asks [y/N] before removing the installed executable and manpages. Keeps backups and configuration. For package installations, use your package manager.

Build from source

Go 1.25 or newer:

git clone https://github.com/toxdes/glesha.git
cd glesha
CGO_ENABLED=0 go build -o build/glesha .
./build/glesha version

First backup

Configure credentials, then create a set and run it.

glesha create docs ~/Documents --to b2
glesha run docs --env /secure/cloud.env
glesha run docs --incremental --env /secure/cloud.env
glesha status docs

create saves settings; run makes a full backup. Add --incremental to save only changes. Sources stay bound to their set.

glesha browse docs --recursive
glesha restore docs --into ~/recovered --env /secure/cloud.env
glesha help run
man glesha-run

Continue with the guides or all CLI options.