gadasin/backup.sh

3 lines
120 B
Bash
Executable File

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