Moving a workspace
Back up everything a self-hosted workspace knows, and move it to fleetd cloud or to a new workspace on another machine.
Back up your workspace
Section titled “Back up your workspace”A workspace keeps all it knows in one database, ~/.fleetd/hub/hub.sqlite. Two kinds of copy protect it:
- A daily copy, made for you. Once a day the workspace checks its database, then copies it to
~/.fleetd/hub/backups/hub-<date>.sqlite. It keeps the newest 3. A damaged database is never copied over them, and no copy is made when the disk is short of room.fleetd doctorshows the last check and the newest copy. These copies sit on the same disk, so they cover a damaged database, not a lost machine. - An export, made by you.
fleetd exportwrites everything to one file, with secrets sealed under a passphrase (see below). Make one regularly, for example weekly from cron, and keep it on another machine. It also reads a damaged database.
Restore from a daily copy
Section titled “Restore from a daily copy”When fleetd doctor says the database is damaged:
-
Stop the workspace:
fleetd workspace stop. -
Put the newest copy in place, and remove the old database’s journal files:
cd ~/.fleetd/hubmv hub.sqlite hub.sqlite.damagedrm -f hub.sqlite-wal hub.sqlite-shmcp backups/hub-<date>.sqlite hub.sqlite -
Start it again:
fleetd workspace restart, then runfleetd doctor.
What happened after that copy was made is lost. The vault’s key isn’t in the copy; it stays in ~/.fleetd/vault on the
same machine, so the vault opens as before.
Restore from an export
Section titled “Restore from an export”Import it into a fresh workspace, as in Move to another machine. The new workspace’s Claude API key reaches
a machine only once that machine is online and joined: until then fleetd doctor says the key “isn’t on” it.
Move to the cloud
Section titled “Move to the cloud”You need Admin on every machine.
- In the app, open Settings › Workspace › Move to the cloud.
- Sign in to fleetd cloud. The move goes into an empty workspace of yours, or a new one.
- Click Move. fleetd cloud first checks that the workspace fits. Then the workspace pauses its bots, packs its data and uploads it. The sheet shows how far each step is.
- Your machines rejoin the cloud workspace by themselves. An offline machine rejoins when it’s next online.
- The app opens the cloud workspace. Your bots carry on there, with their history.
The cloud workspace is the live one from then on. The old workspace keeps its data and stays paused, only for Undo on its banner, which runs the bots there again, and for the screen recordings. Once you’re sure, Remove on its banner takes it out of the app; Undo goes with it, until you pair the app with it again.
Screen recordings stay on the old workspace for now: they are often most of its size.
If the move stops, nothing changes on either side, and the sheet says why, after a restart too. Press Move to try again into the same cloud workspace.
Move to another machine
Section titled “Move to another machine”-
On the old workspace, write everything to one file:
fleetd export --out shop.tarIt asks for a passphrase of 12 characters or more. Secrets in the file are sealed under it. Keep the passphrase: nobody can recover it.
-
On the new machine, install fleetd and run
fleetd init. Don’t add a bot. -
Stop the new workspace:
fleetd workspace stop. -
Load the file and enter the passphrase:
fleetd import shop.tar -
Start the workspace again:
fleetd workspace restart. -
Join your machines and pair your devices again, with the commands
fleetd importprints.
The old workspace keeps running during the export. Import only loads into a new workspace with no bots yet. It loads everything or nothing: a wrong passphrase or a damaged file changes nothing.
For scripts, pass the passphrase with --passphrase-file <file>, or - for standard input. --no-secrets leaves
the secrets out.
What moves
Section titled “What moves”- Bots with their settings, repos and instructions
- Chats, with attachments
- Orders, decisions, memory, skills and reports
- Automations, with their schedules and webhooks
- People and their roles
- The workspace’s settings
- Recordings of screens (not yet when you move to the cloud)
- Vault items, the GitHub App and connected accounts (with the passphrase)
What stays behind
Section titled “What stays behind”- Machines’ and devices’ sign-ins. Each machine joins the new workspace again with
fleetd pair --worker <machine-id>. People pair their devices again. - Running agents. Let them finish or stop them before you export.
- The vault’s key. The new workspace has its own. Save its new recovery code.
A machine that joins under the same name, with its folders where they were, picks its bots up as they were.