Docs

Upgrade and roll back

Back up, move to a new version, and restore the backup if it goes wrong.

Upgrade

  1. Back up

    make backup
    

    See Back up and restore.

  2. Set the version and start

    Set DRIVE_VERSION in deploy/.env to the release, such as 1.3.0, or to latest.

    docker compose --env-file deploy/.env -f deploy/docker-compose.yml pull
    docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d
    

    Then check that curl http://localhost:8080/health answers.

Roll back

  1. Stop the services and set the old version

    docker compose --env-file deploy/.env -f deploy/docker-compose.yml stop api worker web
    

    Put the previous release in DRIVE_VERSION.

  2. Restore the backup

    make restore BACKUP=backups/drive-YYYYMMDD-HHMMSS
    

Changes made after the backup are lost. Your files are untouched.