---
title: Back up your flow
project: LessCode
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/lesscode/1-0/guides/backups/
updated: 2026-11-19T04:41:04.689Z
---

# Back up your flow

> Keep a copy of your flow and restore it on the same or another server.

Everything you build is in one file: the [flow file](../../reference/flow-file/). It holds your nodes, connections, installed components and variables.

## Download a copy from the designer

1. Select **Add** (plus) in the toolbar.
2. Select **Download design**.

The browser saves a file named `Total.js LessCode.json`. It has the same content as the flow file.

## Copy the file on the server

For a source install, copy `flowstreams/lesscode.flow` from the LessCode folder.

For Docker, copy it out of the container:

```bash
docker cp lesscode:/www/.src/flowstreams/lesscode.flow ./lesscode.flow
```

Wait a few seconds after your last change before you copy, so the file has your latest work.

## Restore a copy

**1.** Stop LessCode.

**2.** Replace `flowstreams/lesscode.flow` with your copy. A file from **Download design** works too: rename it to `lesscode.flow`.

**3.** Start LessCode and reload the designer.

For Docker, copy the file into the container and restart it:

```bash
docker cp ./lesscode.flow lesscode:/www/.src/flowstreams/lesscode.flow
docker restart lesscode
```

Keep only one `.flow` file in the `flowstreams` folder. The designer shows only one flow.
