lemmy/docker/docker_db_backup.sh

3 lines
103 B
Bash
Executable File

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