How to create SolusVM 2 database backup?

Have more questions? Submit a request

Applicable to:

  • SolusVM 2

Question

How to create SolusVM 2 database backup?

Answer

  1. Connect to SolusVM 2 management node via SSH
  2. Run the command:

    # docker exec -it $(docker ps -q -f name=solus_postgres | head -n1) pg_dump -U$(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_USER | awk -F "=" {'print $2'}) $(docker exec $(docker ps -q -f name=solus_postgres | head -n1) env | grep POSTGRES_DB | awk -F "=" {'print $2'}) > /path/to/solusvm2.sql

    where /path/to/solusvm2.sql - is path to the database dump

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.