Updating Odilon version
The installer automatically detects an existing installation and runs in upgrade mode: it stops the
service, takes a rollback snapshot of the current binaries, replaces only the application files, and
restarts. Your configuration in /etc/odilon and all stored objects are never touched.
Download the new package, extract it and run the installer with the same parameters used at install time.
For a default installation (no custom flags) this is all you need:
# download the new version
sudo wget http://odilon.io/resources/odilon-server-2.1.tar.gz
# extract
sudo tar xvf odilon-server-2.1.tar.gz
cd odilon-server-2.1
# upgrade — installer detects /etc/odilon already exists and runs in upgrade mode
sudo ./install-odilon.sh
The installer will print a rollback command at the end in case anything goes wrong, for example:
# rollback to previous version if needed
sudo systemctl stop odilon
sudo cp -a /opt/odilon-backups/odilon/20260707_143000/. /opt/odilon/
sudo systemctl start odilon
Up to 3 rollback snapshots are kept automatically under /opt/odilon-backups/odilon/.
Older ones are pruned when a new upgrade is run.
Migrating from a pre-2.x installation
Pre-2.x releases stored the configuration file inside the installation directory
(/opt/odilon/config/odilon.properties) rather than in /etc/odilon/.
The installer detects this automatically and runs in migrate mode:
- Takes a full snapshot of the current installation (binaries and config) as a rollback safety net.
- Copies your existing
odilon.properties to /etc/odilon/odilon.properties — the
canonical location going forward.
- Renames the old
config/ directory to config.migrated.<timestamp>/ — kept
on disk until you remove it.
- Reads the existing log directory from the running systemd unit and re-applies correct ownership — so a
custom log path like
/var/log/odilon is preserved and fixed.
- Replaces the binaries and re-registers the service.
No manual steps are needed — just run the installer the same way as a normal upgrade:
cd odilon-installer-2.1
sudo ./install-odilon.sh
After migration, verify your settings in /etc/odilon/odilon.properties and remove the old
backup directory when you are satisfied:
sudo rm -rf /opt/odilon/config.migrated.*
If your existing log directory had wrong permissions (causing the service to fail on start), the installer
now fixes ownership automatically during migrate and upgrade. To fix it manually on a running server:
# replace /var/log/odilon with your actual log directory
sudo chown odilon:odilon /var/log/odilon
sudo chmod 750 /var/log/odilon
sudo systemctl restart odilon