# Migration from archive to full node

Rollup node operators can reduce storage cost by changing the type of rollup node. An `archive` node stores the full state history for each block since genesis block. In contrast, a full node stores the state only for the recent 128 blocks. Therefore, moving from `archive` node to `full` node will significantly reduces the storage needs for running rollup nodes.

To migrate the rollup node from `archive` node to `full` node, take the following steps:

1. Stop the current rollup node. Change current working directory to the root of `setup-rollup` repository.

```
cd setup-rollup
docker compose down
```

2. In `geth.yml`, change `--gcmode` from `archive` to `full` node.

```
--gcmode=full
```

3. Resume the rollup node

```
docker compose up -d
```

Your rollup node should be up now. It will garbage collect the states older than 128 blocks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.witnesschain.com/archive/for-the-node-operators/watchtower-setup/migration-from-archive-to-full-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
