jq
so you would have to do a conda install so you get the dependencies.
We recommend installing miniconda under /opt/anaconda
to allow all AE admins to access it. This is helpful in case admins change.
Next, follow the steps in the section below if AE-master has internet access, or follow the steps under AE-master is airgapped if it’s airgapped.
ae5_backup_restore
from anaconda.org as shown below:jq
package in a conda environment:m_backup
directory if it does not already exist. Ensure you have sudo
access before running, as the script needs it to copy files from /opt/anaconda/storage
:
/opt/anaconda/storage/object/anaconda-repository
./opt/anaconda/storage
folder so the data remains intact. Create new /opt/anaconda/storage
folder (ensuring permissions / owner are the same as the backup). Scale the DB back up and restart all application pods (anaconda-enterprise-ap):anaconda-enterprise
user. Since your LDAP configs are all in the /opt/anaconda/storage.working
location, LDAP login will not work. A new /opt/anaconda/storage
is created that doesn’t contain any of your data/customizations.ae_restore.sh
uses sudo
while copying the data back; ideally passwordless sudo should be setup for the account.ap-ui
, ap-repository
, ap-auth
pods take some time to come back up.anaconda-repository
of conda packages from the backup created above:ERROR: database "anaconda_auth" does not exist
are an artifact of the testing. They result from moving the existing pgdata directory, and then letting it get recreated by scaling the DB pod; the tables do not exist in the way they would when you (re)install then restore. This error can be ignored.