Bringing the history of CrushFTP 11#
CrushFTP 11 kept its statistics in a database. CrushMFT 27 keeps a record of its own, in another form, and does not use that database. A server that was updated from 11 starts recording the new way from its first second; its history, the years before, stays in the old database until you bring it over.
That is a one-time import. It reads the old database and writes what it finds into the new record. The old database is only read: "Nothing in it is changed or deleted."
Before you start#
-
CrushFTP 11 must not be running on that database.
-
The settings of version 11 are still there. After the update, the server still knows where the old statistics database was. The import reads that, and it is the only use the server makes of it.
-
For the built-in database of version 11 (most servers): the server needs the old database's program file to read it, and CrushMFT 27 does not bring it. The import says so when it is missing:
Copy
derby.jarfrom the v11 installation (plugins/lib/derby.jar) into this server'splugins/libfolder and restart CrushMFT.The file can be removed again when the import has finished.
-
For statistics kept in MySQL or SQL Server: the driver you had set up for version 11 is used.
-
Room. The new record is far more compact than the old database, but it is in addition to it until you delete the old one.
Running it#
In the Data section of the Reports app, the card The v11 statistics:
| Start | begins, or goes on after a stop |
| Stop | pauses |
| State | not started, running, finished; or what is missing: "The v11 database was not found." |
While it runs, the card shows the Source, the Month it is at, Months done, Rows read, Events written, and what was Skipped and why.
- It works month by month, newest first: the reports of last year are complete long before the import reaches 2015.
- It runs in the background. The server is in full use meanwhile, and new events are recorded as always.
- It remembers each finished month. After a stop or a restart of the server it goes on where it was.
- Starting it needs a full administrator.
What comes over#
| From version 11 | Becomes |
|---|---|
| sessions | logins and logouts, with the user, the address, the protocol and the listener |
| transfers | uploads, downloads, deletes, renames, moves and new folders |
| transfers that jobs made | file events of the job, with the job's name and the task |
| password changes | password changes, with whether the user or an admin started them |
| the fields of upload forms | form events |
| job history, as far as the job folders still hold it | job runs |
The counters of the transfer limits are set from the last 30 days of imported transfers.
What does not, and why#
The card says it in one sentence:
Paths were cut at 255 characters in v11, failed downloads were never kept, there is no client, TLS or login method, and job history is what the job folders still hold.
In detail:
| long paths | version 11 cut paths at 255 characters, and the rest is gone |
| failed downloads | version 11 never recorded them |
| the program a user connected with, the encryption, how they signed in | not recorded by 11. Reports such as Encryption in use and Login methods begin with the update. |
| what jobs did step by step | only what the job folders' own history still has |
| admin changes, bans, shares, server health | not in the statistics of 11 |
failed logins of anonymous over the web |
skipped on purpose, and counted: browsers cause them by the thousand before anybody logs in, and they are not events. On one measured server they were 490,853 of 580,409 session rows. |
| the connection group | worked out from the listener as the server is set up now; sessions on a listener that no longer exists have none |
Two more things the import does with care:
- A session without a real end. Version 11 marked a session that never ended properly with an end exactly 24 hours after its start. Such sessions come over as a login with no logout.
- Names that are no accounts. A failed login for a name that never once logged in, and is no account now, is kept apart as a name that was tried, not as a user: see what is recorded.
Afterwards#
- Check a report you know. Run "Upload and download summary" for a month of last year and compare with what version 11 showed.
- Schedules from 11 were converted at the update, not by this import: see Scheduled reports.
- The old database can be archived and deleted when you are content, and
derby.jarremoved fromplugins/lib. - Retention applies. Imported events older than your retention for single events are kept as totals only. If you want the old single events, raise the retention before the import: Preferences, Reporting.
If you do not import#
Nothing breaks. Reports show data from the day of the update on, and the old database stays where it is, readable by whatever read it before.