Zum Hauptinhalt springen

Upgrading

Vodia Analytics supports zero-downtime upgrades.

note

Please perform a full backup of the virtual machine before proceeding with any upgrades.

Standard Upgrade

cd cdrstats
wget https://vodia.nyc3.cdn.digitaloceanspaces.com/cdrstats/cdrstats.zip -O cdrstats-update.zip
unzip -o cdrstats-update.zip
docker compose build
docker compose up -d

The migration system automatically applies any database changes on startup. Your data is preserved.

Backup Before Upgrading

A daily backup cron job runs automatically (configured during installation). To create a manual backup before upgrading:

docker compose exec mongo mongodump --uri="mongodb://vodia_app:PASSWORD@localhost:27017/vodia_cdr?authSource=vodia_cdr" --archive=/tmp/backup.archive
docker compose cp mongo:/tmp/backup.archive ./backup-$(date +%Y%m%d).archive