Back up current Ambari database
Creates a copy of the current Ambari database and meta info.
-
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.
where:pg_dump -U [AMBARI_DB_USERNAME] -f ambari.sql Password: [AMBARI_DB_PASSWORD]
Table 1. Database Dump Script Variables, Values, and Descriptions 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