---
title: Back up your Code instance
project: Code
version: 2.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/code/2-0/guides/back-up/
updated: 2026-11-19T04:32:04.377Z
---

# Back up your Code instance

> What to copy so that you can restore Total.js Code and your projects.

Make regular copies of your Code instance, and keep them away from the server.

## What to copy

| Folder | What it holds |
|---|---|
| `databases` in the Code folder | Users, projects, chat messages, change history and settings |
| Your applications folder, `/www/www/` in the official installations | The files of your projects |
| The backup folder, `/www/tmp/backup/` by default | The [file backups](../backups/) and the [branches](../branches/) |

## Keep a copy of the backups

The backups inside Code protect you from a wrong edit. Keep your own copy of the backup folder as well, so you still have them if you move Code to another server or recreate its container.

The location of this folder is the `backup` key of the [configuration](../../reference/configuration/).
