# Migrate directories to Flatpak

## Migrate to Flatpak

In recent versions of the Flatpak and, the bottles are saved in a different location than the other packages, respecting the structure of the Flatpak package.

#### Paths differences

The other packages save the essential Bottles files, such as components, temps, and bottles, in the directory: `~/.local/share/bottles` . Flatpak saves these files in the Flatpak `data` directory: `~/.var/app/com.usebottles.bottles/data/bottles`.

#### Migrate old bottles to Flatpak

The migration is simple as it sounds - just move (or copy) the content of the path `~/.local/share/bottles` to the new one `~/.var/app/com.usebottles.bottles/data/bottles`

```bash
# make a copy
yes | cp -rf \
~/.local/share/bottles/* \
~/.var/app/com.usebottles.bottles/data/bottles

# or move (using rsync to take care of existing files)
rsync -a \
~/.local/share/bottles/* \
~/.var/app/com.usebottles.bottles/data/bottles
```

Restart Bottles and that's it.


---

# 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.usebottles.com/flatpak/migrate-bottles-to-flatpak.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.
