lemmy/docker/docker_db_backup.sh
2020-12-16 22:42:25 -05:00

5 lines
118 B
Bash
Executable File

#!/bin/bash
pushd dev
docker-compose exec postgres pg_dumpall -c -U lemmy > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql
popd