# Upgrading from CrushFTP 11

CrushMFT 27 is not installed over version 11. It is a separate installation, in its own folder, with its own service. You install it beside version 11, copy your users, settings and jobs into it, try it, and then let it take over the ports.

Version 11 is left as it was. That is your way back.

Work through the [upgrade checklist](Upgrade-Checklist.md) as you go; this page explains the steps.

## Before you start

| | |
|---|---|
| **A licence for version 27** | a licence of an earlier version does not register version 27 |
| **Java 21 at least, 25 recommended** | version 11 ran on older Java. See [Requirements](Requirements.md). |
| **A time when the server may be down** | the switch itself takes minutes; plan an hour, and a way back |
| **A list of what your server uses** | plugins, jobs with unusual tasks, AS2, a DMZ server, a second server, a database. Each has a note below. |
| **A full copy of the version 11 folder** | made while version 11 is stopped |

Read [What's new](Whats-New.md) first, at least the part "What is gone, or changed".

## The steps

### 1. Install version 27, without starting it

Unpack `CrushMFT27.zip` into a new folder. Do not unpack it into the version 11 folder. Install Java if needed. See [Install on Windows](Install-Windows.md), [Install on macOS](Install-macOS.md) or [Install on Linux](Install-Linux.md), up to the point where the server would be started.

### 2. Stop version 11

Stop its service. From here until the switch your users have no server, unless you copy from a running version 11 for a first trial: see "A trial first", below.

### 3. Copy your data

From the version 11 folder into the version 27 folder:

| Copy | Is |
|---|---|
| `prefs.XML` | the server's settings: ports, plugins' settings, everything in Preferences |
| the folder `users` | all users, groups and their folders' definitions |
| the folder `jobs` | the jobs |
| the folder `TempAccounts` | the shares that are open |
| `ssh_host_*` key files, or whichever files your SFTP ports name | the server's SSH host keys. Without them, every SFTP client warns that the server changed. |
| your keystores: the SSL certificate, AS2 keys, PGP keys and `pgp.keystore` | wherever they lie; if they are inside the old folder, copy them and correct their paths in step 5 |
| the folder `Preview`, if you use previews | so that they need not all be made again |
| custom logos and pictures from `WebInterface/images` | only your own files |
| the old statistics database, if you want the old reports' history | see [Importing from CrushFTP 11](Reports-Import-from-11.md) |

**Do not copy** the old `WebInterface` folder, `CrushFTP.jar`, or the `plugins` folder. Those are the program, and version 27 brings its own.

### 4. Start version 27 on other ports, or with version 11 stopped

Start it as a temporary server from the control panel, or with the start script on Linux. With version 11 stopped it uses your real ports; nobody outside knows yet unless the firewall already lets them in.

Log in to the admin pages with your usual administrator.

### 5. Look at what the server says

- [Startup notices](Admin-Startup-Notices.md): what the server found at its start.
- Preferences: the paths of keystores and keys, if they pointed into the old folder.
- The About section: the version, the licence, and plugin files that were not loaded.

Enter the version 27 licence.

### 6. Try the things your users do

One login per protocol you offer. An upload and a download. A share. One run of each kind of job. A login through your directory or identity provider. Mail.

### 7. Switch

Remove the version 11 service, or set it not to start. Install the version 27 service and start it: [The Windows service](Windows-Service.md), [The Linux service](Linux-Service.md). On Windows the two services have different names and can both be installed; make sure only one starts.

### 8. Afterwards

Keep the version 11 folder for a few weeks. Then archive it and remove it.

## What happens to what

### Works as before, nothing to do

- **Users**, their passwords, their folders. Passwords stored in the older ways are stored in the stronger way of version 27 the next time each user logs in.
- **Settings** in Preferences. A setting that version 27 no longer knows is dropped from the file at the first start; this is why you keep the version 11 copy.
- **Jobs.** They run as they did. The new flow tasks are there when you want them: [Flow](Jobs-Flow.md).
- **Administrators.** The admin switches on users go on working, shown as legacy roles. Converting them to roles is a step you take when you choose: [Roles from version 11](Security-Roles-from-11.md).
- **AS2 partners.** They stay on the AS2 engine they were on. Moving them to the new engine is separate and optional: [Moving from AS2 version 1](AS2-Upgrade-from-v1.md).
- **Shares** that are open.

### Needs a look

| If you use | Then |
|---|---|
| **plugins** | version 27 brings its own plugin files. A plugin of another maker, or one of yours, is loaded only if you allow files that are not the server's own: [Writing a plugin](Plugins-Writing-Your-Own.md#getting-it-loaded). CrushOAuth and CrushSQL are gone: [Plugins overview](Plugins.md#no-longer-plugins). |
| **the old reports and their schedules** | the Reports app replaces them. Scheduled reports are converted. The old statistics can be imported once: [Importing from CrushFTP 11](Reports-Import-from-11.md). |
| **search** | the index is built anew, in files: [Search and the file index](Search-Index.md) |
| **sync** | its record is kept in files now; clients go on |
| **a database for users** | still possible: [Users in a database](Prefs-User-Config-SQL.md). Put the driver file into the new `plugins/lib`. |
| **a database driver for jobs** | copy the driver file into the new `plugins/lib` |
| **SMB folders** | they run on a new SMB client. Very old file servers that speak only the first SMB version need a setting: see [the kinds of storage](VFS.md). |
| **old SFTP clients** | version 27 offers current ciphers and key kinds. A client from many years ago may not find a common one: [SFTP keys and ciphers](Ports-SFTP-Keys-and-Ciphers.md). Try your oldest client in step 6. |
| **custom pages** in the old WebInterface folder, changed `login.html`, own scripts | they do not carry over: the web interface is new. Rebuild the look with the settings for it: [Changing how the WebInterface looks](Web-Customizing.md). |
| **scripts that call the server's web commands** | the commands of version 11 are answered as before unless you turn that off; new work should use [the API](API-Getting-Started.md) |
| **a DMZ server** | upgrade it too, and pair it: [Pairing a DMZ](DMZ-Pairing.md). Do the internal server and the DMZ server in one window of time. |
| **a second server with replication** | upgrade all servers in one window of time, then consider forming a cluster: [High availability](High-Availability.md) |
| **Java options** in the old start script or service | bring over the ones you set on purpose: [Java and memory settings](Java-and-Memory.md) |
| **monitoring** that reads the old log or old addresses | see [Logging](Logging.md), [Health checks](Monitoring-Health.md) |

## A trial first

Nothing stops you from running version 27 on a copy first, on another machine or on other ports, days before the real switch:

1. Copy the data as in step 3, from a backup or from the running version 11.
2. Before starting version 27 on the same machine, change its ports in the copied `prefs.XML`, or start it while version 11 is stopped for a moment and change them in Preferences.
3. Try everything in step 6 at leisure.

Mind two things on a trial copy: jobs with schedules run there too, so disable the schedules that send or delete; and alerts mail real people.

For the real switch, copy the data again: users changed their passwords meanwhile.

## Going back

Stop version 27, start the version 11 service. Version 11's folder was not changed.

What happened on version 27 in between, uploads, new users, changed passwords, is not in version 11. The files are wherever the users' folders point, so those are not lost; users and passwords made meanwhile are.

## Not tried for this page

An upgrade of a real version 11 server was not run for this page. The way described is the one every earlier major version used, and the designs of version 27 say that a version 11 server's users, settings, jobs and admin switches go on working when version 27 starts on them. The lists above are gathered from the pages of this wiki on each part. Do the trial first.
