harbor/docs/harbor-doc-reorg/administration/upgrade/roll_back_upgrade.md
2019-10-17 16:59:01 +02:00

855 B

Roll Back an Upgrade

If, for any reason, you want to roll back to the previous version of Harbor, perform the following steps:

  1. Stop and remove the current Harbor service if it is still running.

    cd harbor
    docker-compose down
    
  2. Remove current Harbor instance.

    rm -rf harbor
    
  3. Restore the older version package of Harbor.

    mv /my_backup_dir/harbor harbor
    
  4. Restore database, copy the data files from backup directory to you data volume, by default /data/database.

  5. Restart Harbor service using the previous configuration.
    If previous version of Harbor was installed by a release build:

    cd harbor
    ./install.sh
    

NOTE: While you can roll back an upgrade to the state before you started the upgrade, Harbor does not support downgrades.