lemmy/docker_db_backup.sh

2 lines
87 B
Bash
Raw Normal View History

2019-08-14 02:28:46 +00:00
docker exec -it lemmy_db_1 pg_dumpall -c -U rrr > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql