# Pausing a project

Pausing stops a project until you resume it, without losing anything. This page explains how it works, when it is useful, and the two cases when BitHut pauses projects itself.

## What a pause does

- A site stops and does not answer.
- A background process, such as a bot, stops.
- A scheduled script's schedule is switched off.

Code, data, keys and settings stay. The project's page shows **Paused** with a grey light.

## Pausing and resuming

1. Open the project and the **Settings** tab.
2. Press **Pause the project** and confirm with **Pause**.
3. To start it again, open the project: the Overview shows **Resume**.

Your AI can pause and resume a project too, when you ask it.

## Moving a project from another place

A pause is most useful when a project moves to BitHut from your computer or another hosting. While the old copy still runs there, the BitHut copy must not run too: two copies of a Telegram bot cannot run at once, and a scheduled report would go out twice.

1. Your AI pauses the project on BitHut first.
2. It deploys. A paused project is built and its code is checked, but it does not start. The Versions tab shows the version as **Ready, waits for resume**.
3. You turn the old copy off. For a scheduled script, wait until its latest run there is done.
4. You press **Resume**. The waiting version starts with the usual [trial run](/docs/projects/checks).

For a scheduled script, your AI can make one test run while the project is paused, only if you agree. It sets the variable `BITHUT_DRY_RUN=1`. Unless the code checks that variable and skips sending messages or writing data, the test run is a real run.

## When BitHut stopped a project

If a project breaks the [usage rules](/terms), for example mining or sending spam, BitHut can stop it for a check. Its status reads "Stopped by BitHut". Code and data stay, but you cannot resume, hand over or delete it until the check ends. Write to team@bithut.app about it. When the check ends, the project stays paused, and you resume it yourself.

## When your plan ends

When a plan ends (cancelled or not paid), your running projects keep running for 30 days. You get a message 7 days before they stop. Then BitHut pauses them; code, data and settings stay. New versions cannot go online meanwhile.

When you choose a plan again, the projects BitHut paused start by themselves. Projects you paused yourself stay paused. See [Plans and billing](/docs/billing).
