# File Structure

## Overview

Everything the plugin writes lives in plugins/PhoenixCurrencies.

```
plugins/PhoenixCurrencies/
├── currencies/
│   ├── money.yml
│   └── gems.yml
├── migrations/
│   └── imported.yml
├── menus/
│   ├── wallet.yml
│   ├── history.yml
│   ├── bank.yml
│   └── bank-history.yml
├── translations/
│   └── translations.en.yml
├── backups/
├── config.yml
├── labels.yml
└── database.db
```

| File or Folder | Contents |
| -------------- | -------- |
| **currencies** | One file per currency. See [Currency File](currency-file.md). |
| **migrations** | The players an Add [migration](../features/migrations.md) already credited, so a second run skips them. |
| **menus** | The layout of the player menus. See [Customize Menus](customize-menus.md). |
| **translations** | The language file. See [Languages & Translations](languages.md). |
| **backups** | A copy of a file taken before the plugin rewrote it. |
| **config.yml** | The main settings and the database connection. See [Main Configuration](main-configuration.md). |
| **labels.yml** | The names given to money other plugins and commands move. See [Payment Labels](../features/payment-labels.md). |
| **database.db** | The SQLite database, when SQLite is used. |

## What Lives in the Database

Balances, the list of known players, the transaction log, banknotes, banks and the daily payment counters are **not** in these files. They are in the database set in config.yml, which is SQLite by default and MySQL, MariaDB or PostgreSQL if you set it up.

## Moving to Another Server

* **Configuration** - copy `currencies/`, `menus/`, `translations/`, `config.yml` and `labels.yml`.
* **Balances** - point the new server at the same MySQL, MariaDB or PostgreSQL database, or copy `database.db` across while both servers are stopped.

## What to Back Up

The whole plugins/PhoenixCurrencies folder, plus your database if you use MySQL, MariaDB or PostgreSQL.

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/configurations/file-structure