Backup

Save an installed Weft node and its identity in a single archive.

Download weft-backup.sh to ~/Downloads. Run it after the node’s first start, when you aren’t editing files or updating the installation. It writes a private .tar.gz archive to ~/weft-backups/ and prints its path. The archive contains your private peer key; store it securely.

Systemd

Run as the user who installed Weft:

bash ~/Downloads/weft-backup.sh systemd

The archive includes weft, weftd, the user service and its overrides, configuration, offers, and the state directory. It also includes the last weft update rollback archive if present ($XDG_STATE_HOME/weft-update/previous.tar, normally ~/.local/state/weft-update/previous.tar).

If you changed Weft’s config or state directory, set WEFT_CONFIG_DIR or WEFT_STATE_DIR when running the script. Pass any external files your unit needs, such as an EnvironmentFile or the target of a symlink, as additional paths.

Docker Compose

From the installed directory containing compose.yaml, run the command for your network mode:

# Consumer or bridge-network provider
bash ~/Downloads/weft-backup.sh compose
# Host-network provider
bash ~/Downloads/weft-backup.sh compose -f compose.yaml -f compose.host.yaml

The archive includes the project directory (including .env, offers, and overrides), the effective Compose configuration, the contents of the state volume, and the project’s images. This covers the bundled Weft project; back up external model servers, model weights, and any files mounted from outside the project separately.