How to Update
These steps update a manual installation on Debian or Ubuntu to the latest release. They do not apply to the nightly version, which you update with git pull.
Read the release notes of every version you skip first. Since 2.3, PLANKA needs Node.js 24 or newer; check with node -v.
-
Stop PLANKA
sudo systemctl stop plankaIf you use PM2, run
pm2 stop plankaas theplankauser instead. -
Back Up the Database
cd /tmpsudo -u postgres pg_dump planka > ~/planka_backup_$(date +%Y%m%d).sql -
Move the Current Version Aside
sudo mv /var/www/planka /var/www/planka-oldsudo mkdir -p /var/www/plankasudo chown -R planka:planka /var/www/planka -
Download the New Version
sudo -i -u plankacd /var/www/plankacurl -fsSL -O https://github.com/plankanban/planka/releases/latest/download/planka-prebuild.zipunzip planka-prebuild.zip -d /var/www/rm planka-prebuild.zip -
Copy Your Configuration and Files
cp -a /var/www/planka-old/.env /var/www/planka/cp -a /var/www/planka-old/data/. /var/www/planka/data/If you use custom terms, copy them too:
cp -a /var/www/planka-old/terms/custom /var/www/planka/terms/ -
Install Dependencies and Migrate the Database
npm installnpm run db:init -
Start PLANKA Again
exitsudo systemctl start plankaIf you use PM2, run
pm2 restart plankaas theplankauser instead.
Once everything works, remove the old version:
sudo rm -rf /var/www/planka-old