Menu Chiudi
View Categories

Updating Data Crow

From version 5.3.1 Data Crow can install new versions itself. Every download is checked before it is used: it has to be signed by Data Crow. A download which fails this check is not installed.

Your user folder (database, pictures, attachments and settings) is never replaced by an update, wherever you keep it.

Updating a stand-alone installation #

Shortly after starting, Data Crow looks whether a new version has been released. When there is one, the Version Check window opens.

The Version Check window announcing a new version
  1. Click Scarica. Closing the window stops a download which is still running.
  2. When the download has been checked, Data Crow asks whether it should install the new version now.
  3. Data Crow makes a backup, closes, installs the new version and starts again.
  4. After the restart a message tells you the new version has been installed.

If the installation fails, the previous version is restored and you are told what went wrong.

When you do not want to be asked on every start, clear Check for new versions on startup in the window. You can switch it on again in the Settings window (menu Settings).

Windows

When Data Crow is installed in a folder which you are not allowed to change, such as Program Files, Windows asks for administrator permission. When you refuse, nothing is installed and the download is kept.

Linux

Data Crow installs the update itself when you are allowed to change the installation folder. Start Data Crow with datacrow.sh or the desktop shortcut; both keep working after an update.

Linux uses the Java of your system. When a new version needs a newer Java, Data Crow tells you which one. Install that Java first.

Installing a downloaded update yourself #

In some cases Data Crow downloads the new version but leaves the installation to you:

  • on a Mac;
  • when you are not allowed to change the installation folder and Data Crow cannot ask for permission (Linux, or Windows without the Java which comes with Data Crow);
  • when your user folder is inside a part of the installation which the update replaces;
  • when a newer Java is needed first;
  • when you answer No to the question whether Data Crow should install the new version.

The window then shows the folder which holds the new version.

The Version Check window with the folder of the download
  1. Close Data Crow.
  2. In the installation folder, replace the files and folders by those with the same name from the download folder. Remove an old folder before you copy the new one, so no old files stay behind.
  3. Leave your user folder as it is.
  4. Start Data Crow.

Updating a server #

Only an administrator can update a server, from the full client (menu Tools, Server Update) or from the web client (Settings, System Information).

Before you start

The server can only install a new version when:

  • it has been started with its start script, start-server.sh (Linux and Mac) or start-server.bat (Windows). Point your service or scheduled task to this script;
  • the server is allowed to change its own installation folder.

A server which is started in another way tells you about new versions, but cannot install them.

Installing

The Server Update window with a downloaded version
  1. The server looks for a new version every day. This can be switched off with Look for a new version every day. Use Check for updates to look right away.
  2. Click Scarica.
  3. Click Install now or Install in 5 minutes. Until the installation starts you can click Cancel installation.
  4. The server makes a backup, stops, installs the new version and starts again. Users are disconnected.

Connected users are warned before a scheduled update, so they can save their work. The web client loads again by itself after the restart.

Updating the clients of a server #

You do not have to update the clients one by one. When a user logs in with a client which is older than the server, the client offers to download the new version from the server.

  1. Click Scarica. The first time the server may need a few minutes to prepare the download.
  2. Confirm the installation. The client closes, installs the update and starts again.

No backup is made: the data is on the server. The notes about Windows, Linux and installing by hand apply to clients as well. The client gets the download through the image server of the server, so that port has to be reachable (8081 by default).

The backup made before an update #

A stand-alone installation and a server make a backup before they install an update. It holds the database, settings, modules and reports. Pictures and attachments are not part of it, as an update does not touch them.

You find the backups in the folder update/backup inside the user folder. Their names start with datacrow_update_backup_. The last three are kept. A stand-alone installation can restore them with Backup & Restore.

This backup does not replace your own full backups.