harbor/docs/1.10/administration/upgrade/roll_back_upgrade.md
2019-12-20 18:42:51 +01:00

859 B

Roll Back from 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.