lemmy/docker/docker_db_backup.sh

3 lines
111 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-12-17 03:42:25 +00:00
docker-compose exec postgres pg_dumpall -c -U lemmy > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql