# Files and folders

CrushClient keeps everything it writes in one settings folder per user, apart from the program. Reinstalling or updating the program does not touch it.

## The settings folder

| System | Folder |
|---|---|
| Windows | `%LOCALAPPDATA%\CrushClient\` |
| macOS | `~/Library/Application Support/CrushClient/` |
| Linux | `~/.CrushClient/` |

**About** in the sidebar shows the folder and has a button to open it.

| In it | What it is |
|---|---|
| `prefs.XML` | the installation's settings: managed servers, the agent password (as a one-way value), remote access, the [admin defaults](Admin-Defaults.md) |
| `known_hosts` | the SSH host keys you chose to remember |
| `cert_pins.txt` | the certificates you chose to trust |
| `logs/` | the log files, once logging is on |
| `sessions/` | the tabs and their waiting transfers, so they survive a restart |
| `jobs/` | jobs received as a [managed agent](Managed-Agent.md) |
| `settings.properties` | the window's position and size |
| `output.log`, `output.old.log` | what the app itself printed in this run and the one before; useful for support |

## Your bookmarks and schedules

They are in a second file, `CrushClientUser_prefs.XML`, together with your logging and mode choices:

| System | Where |
|---|---|
| Windows | the settings folder, `%LOCALAPPDATA%\CrushClient\` |
| macOS | `~/Library/Preferences/` |
| Linux | the settings folder, `~/.CrushClient/` |

Passwords in it are encrypted.

## Backing up, or moving to another computer

Copy the settings folder and, on macOS, `~/Library/Preferences/CrushClientUser_prefs.XML`. On the new computer, install CrushClient, start it once, quit it, and copy the files over the new ones.

CrushClient keeps a dated backup of its settings files each day it changes them.

## The program

| System | Where |
|---|---|
| Windows | `%LOCALAPPDATA%\Programs\CrushClient` |
| macOS | `CrushClient.app`, usually in Applications |
| Linux | `~/.local/share/crushclient` |

Nothing of yours is in the program folder. `CrushTunnel.jar` there is the transfer engine, the same file a CrushMFT server carries, which is why the [command line](Command-Line.md) works with either.

## From the command line

When you run `java -jar CrushTunnel.jar` yourself, without the desktop app, the settings are read from the folder you start it in, and the user file from the older places: `~/Library/Preferences/` on macOS, `%USERPROFILE%\AppData\` on Windows, and the current folder elsewhere.
