gadasin/backup.sh

3 lines
113 B
Bash
Executable File

docker exec d4dd199a4566 pg_dump -U postgres postgres > $(pwd)/backups/$(date -d "today" +"%Y-%m-%d-%H-%M").sql