Upgrading on Windows
As there are different ways to install ArangoDB on Windows, the upgrademethod depends on the installation method that was used.
In general, it will be needed to:
- Install (or unpack) the new ArangoDB binaries on the system
- Upgrade the current database (or perform a restore)
- Optional (but suggested) to keep the system clean (unless there are specificreasons to not do so): remove the old binaries from the system
Some of the above steps may be done automatically, depending on yourspecifc situation.
Upgrading via the Installer
If you have installed via the Installer, to upgrade:
- Download the new Installer and run it.
- The Installer will ask if you want to update your current database: selectthe option “Automatically update existing ArangoDB database” so that the databasefiles will be upgraded.
Upgrading via the Installer, when the old data is kept, will keep yourpassword and choice of storage engine as it is.
- After installing the new package, you will have both packages installed.
- You can uninstall the old one manually (make a copy of your old configurationfile first).
When uninstalling the old package, please make sure the option“Delete databases with unistallation” is not checked.
When upgrading, the Windows Installer does not use the old configuration filefor the installed Single Instance but a new (default) one (Issue #3773).To use the old configuration, it is currently needed to:
- Stop the server
- Replace the new with the old confituration file
- Restart the server
Manual upgrade of a ‘ZIP archive’ installation
There are two ways to upgrade a Single Instance that has been startedfrom a ZIP package:
- In-Place upgrade
- Logical upgrade
In-Place upgrade
This method works easier if:
- You are using a data directory which is located outside of the directory created when extracting the ZIP archive (data directory can be set via the server option —database.directory)
- You are using a configuration file which is located outside of the directory created when extracting the ZIP archive (a configuration file can be passed via the server option —configuration)
Assuming that:
- Your data directory is directory1 (e.g. “D:\arango\data”)
- Your configuration file is file (e.g. “D:\arango\conf\arangod.conf”)
- Your old binaries are on directory2 (e.g. “C:\tools\arangodb-3.4.0”)
to perform the upgrade of a Single Instance:
- Download and extract the new ZIP package into a new directory (e.gdirectory3 “C:\tools\arangodb-3.4.1”)
- Stop your old server
- Start again the server (this time using the binary located in directory3)passing:
- directory1 as —database.directory,
- file as —configuration
- the option —database.auto-upgrade (so that the old data directory willbe upgraded)
- When the previous step is finished the server will stop automatically; youcan now start your server again as done in the previous step but withoutpassing the —database.auto-upgrade option
- Optionally remove the old server package by dropping the correspondingdirectory when you are confident enough that all is working fine.
Logical upgrade
To perform the upgrade of a Single Instance:
- Download the new package and extract it on a different location than theprevious one
- Stop writes to the old server (e.g. block incoming connections)
- Take a backup of the data using arangodump
- Stop the old server
- Optional (depending on whether or not you modfied default confiugaration),copy old ArangoDB configuration file to the new server (or just editthe new configuration file)
- Start the new server (with a fresh data directory, by default it will beinside the directory created when extracting the ZIP archive)
- Restore the backup into the new server using arangorestore
- Re-enable the writes (e.g. allow again incoming connections)
- Optionally remove the old server package by dropping the correspondingdirectory when you are confident enough that all is working fine.