What is failing ?
My restore script, using puppet template language, $1 is the backup file, $2
was not used.
#!/bin/bash -e
[ -f "$1" ] || exit 1
[ -n "$2" ] && environment="--environment '$2'"
run_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
backupfile="$1"
dbhost="<%= @db_host %>"
dbport="<%= @db_port %>"
dbname="<%= @db_name %>"
dbuser="<%= @db_user %>"
dbpassword="<%= @db_password %>"
dwhdbname="<%= @db_dwh_name %>"
dwhdbuser="<%= @db_dwh_user %>"
dwhdbpassword="<%= @db_dwh_password %>"
export OVIRT_ENGINE_DATABASE_PASSWORD OVIRT_DWH_DATABASE_PASSWORD
[ -d "<%= @createdir %>" ] || "$run_dir/create.sh"
engine-backup --mode=restore --file="$backupfile"
--log=/data/ovirt/run/restore.log --scope=all --tmpdir=/var/tmp
--restore-permissions \
--change-db-credentials --db-host="$dbhost" --db-port="$dbport"
--db-user="$dbuser" --db-password="$dbpassword" --db-name="$dbname" \
--change-dwh-db-credentials --dwh-db-host="$dbhost" --dwh-db-port="$dbport"
--dwh-db-user="$dwhdbuser" --dwh-db-password="$dwhdbpassword"
--dwh-db-name="$dwhdbname"
(cd /etc && etckeeper commit -m 'ovirt engine restore')
puppet agent -v $environment
engine-setup
> Le 1 mai 2025 à 11:56, [email protected] a écrit :
>
> @Fabrice Bacchella, I am trying to test backup/ restore of hosted engine from
> one server to another however it is fails.
> Could you please share the steps for backup/restore when moving hosted engine
> from one server to other.
> _______________________________________________
> Users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/[email protected]/message/J3OIQUB5MR5MQZTNAMIVT3O54DFVRWS4/
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/NT7HJHVBZHJFVIY6IOPUXWS225VMPEYR/