pleroma/postgresql/backup.sh
Your Name d17d30bc9e fix
2021-11-02 13:10:27 -06:00

4 lines
129 B
Bash

#!/bin/bash
su postgres -s /bin/bash -lc "/usr/lib/postgresql/13/bin/pg_dumpall > /saves/pleroma-`date +%Y-%m-%d-%H-%M`.pgdump"