Applicable to:
- SolusVM 2
Question
How to create SolusVM 2 database backup?
Answer
- Connect to SolusVM 2 management node via SSH
- 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
Comments
0 commentsPlease sign in to leave a comment.