Skip to content

Instantly share code, notes, and snippets.

View vantrong291's full-sized avatar
🚩
shutdown -r now

Trong V. Pham vantrong291

🚩
shutdown -r now
View GitHub Profile
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres