Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Backup and recovery

Back up your data before running agents, including writable project directories, worktrees, and other mounted data. See the Security model for sandbox limits.

Backup contents

The table lists default locations for an installation without a sidecar. If the daemon runs remotely, back up its configuration and data on that machine. On the game machine, also back up the game profile, saved connections in <CONFIG>/endpoints/, and likes in <DATA>/jukebox.toml. See Paths and files for overrides, XDG locations, and sidecar paths.

DataDefault locationInclude
Configuration and catalogs~/.config/slopworld/config.toml, project records, user libraries, presets, and the entire agent_templates/ directory including its index and generations.
Workspace records and authority~/.local/share/slopworld/Agent definitions and permissions, host-shell definitions, worktree/task records, Planner TODO.txt and planner/, timer-state.json, and any pending workspace recovery journal.
Agent private state~/.local/share/slopworld/sessions/Tool state, history, configuration copies, and recoverable trash.
Game profile~/.local/share/slopworld/profiles/Saves and mod settings.
Jukebox~/.config/slopworld/jukebox/ and ~/.local/share/slopworld/jukebox.tomlStations and liked songs.
External dataYour project, worktree, cache-mount, and credential-source pathsThese are not backed up by copying SlopWorld’s roots.

Preserve config.toml, which contains the authoritative daemon token. The daemon recreates its endpoints/local.toml descriptor; it cannot replace that configuration. Saved client connections in endpoints/NAME.toml must be backed up. Daemon caches, including activity and prompt summaries, are disposable.

Backup procedure

  1. Stop agents, host shells, and other tools writing to the data being copied. Stopping the systemd service alone leaves tmux and its processes running.
  2. Save and close the game so its profile stops changing.
  3. On the daemon’s machine, stop its service with systemctl --user stop slopd. For a sidecar, run slopcar stop; this also ends the container’s tmux and agent processes.
  4. Copy the locations listed above, including any path overrides, into one backup. Preserve permissions and symlinks. Keep all writers stopped until copying ends, then start the daemon or container again.

Keep any workspace.save-journal with the same backup’s configuration and data files. Do not delete the journal or combine files from different backup revisions.

Machine and profile recovery

Stop writers, close the game, and stop the daemon or container as in Create a backup. Restore configuration, data, private state, the game profile, and external data from the same backup to their configured locations. Finish restoring projects before starting agents that reference them.

If workspace.save-journal is present, restore the original SLOPD_CONFIG_ROOT and SLOPD_DATA mapping before starting the daemon. Startup recovers interrupted workspace transactions before loading records. This recovery covers process interruption, not power-loss durability.

To start the daemon’s systemd service, run this on its machine:

systemctl --user start slopd

For containers, follow Sidecar mode. Agents with autostart enabled start automatically. Start other agents from the sidebar. The daemon recreates its endpoint descriptor from the saved configuration.

Agent private-state recovery

Resetting or deleting a configured agent moves its state to recoverable trash, retained for at least 14 days. Temporary-agent state is removed instead. See Private state for the lifecycle of restart, reset, and deletion.

To restore a trash entry:

  1. Stop the agent.
  2. If it has fresh private state, reset it.
  3. Open Settings > Storage.
  4. Select Restore on the agent’s trash entry.

A deleted agent can be restored when its name is available and its saved project and mounts remain valid. Restore the project configuration first if needed. Configured agents retain their private state while Down. Remove unwanted orphaned entries through Settings > Storage.