You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- NOW=$(date +"%Y%m%dT%H%M%SZ")
- DUMP_FILENAME="$NOW"_lesspass_db.sql
- docker exec -it lesspass_db_1 sh -c 'PGPASSWORD=$POSTGRES_PASSWORD pg_dumpall -U $POSTGRES_USER -h localhost -p 5432 --clean --file='$DUMP_FILENAME''
- docker cp lesspass_db_1:$DUMP_FILENAME .
- docker exec -it lesspass_db_1 rm $DUMP_FILENAME
- echo $DUMP_FILENAME
|