-
Notifications
You must be signed in to change notification settings - Fork 3
Steps to Take Backup of CLIxDashboard Database
parthasarathiE edited this page Jan 2, 2020
·
4 revisions
This page describes steps to take backup of all data from postgres database associated with dashbaord.
- login into the server on which clix_dashboard_backend docker is running
- move to 'CLIxDashboard' folder
- To take Backup:
- docker exec -t clix_dashboard_postgres pg_dumpall -c -U admin_clixdata > SchoolDashboardDump_
date +%d-%m-%Y"_"%H_%M_%S
.sql
- docker exec -t clix_dashboard_postgres pg_dumpall -c -U admin_clixdata > SchoolDashboardDump_
- To restore data into DB:
- cat SchoolDashboardDump_<some_datetime>.sql | docker exec -i clix_dashboard_postgres psql -d clix_dashboard_db -U admin_clixdata