Backup and Restore
caution
Stop your Annolive server before backing up or restoring configuration.
Stop the server
docker compose -f /opt/annolive/docker-compose.yml down
Backup data
Data and configuration files are stored under /opt/annolive/, including .env, PostgreSQL data, RabbitMQ data, media, and static files. Archive everything into ~/annolive_backup_data.tgz:
cd /opt/annolive/
sudo tar czvf ~/annolive_backup_data.tgz .
Restore data
Replace any existing data with the backup:
sudo rm -rf /opt/annolive/
sudo mkdir -p /opt/annolive/
sudo tar -xzf ~/annolive_backup_data.tgz -C /opt/annolive
sudo chown -R 1000:1000 /opt/annolive
Start Annolive again:
docker compose -f /opt/annolive/docker-compose.yml up -d
Do not re-run setup.py when restoring an existing installation.