Back up Current Data
On the Ambari Server host, stop the original Ambari Server.
ambari-server stop
Create a directory to hold the database backups.
cd /tmp
mkdir dbdumps/
cd dbdumps/
Create the database backups.
pg_dump -U {ambari.db.username} -f ambari.sql
Password: {ambari.db.password}
where the following:
Variable
Description
Default
ambari.db.username
The database username.
ambari
ambari.db.password
The database password.
bigdata
Create a backup of the Ambari Server meta info.
ambari-server backup