pleroma/backup.sh

4 lines
156 B
Bash
Raw Normal View History

2022-05-04 11:57:40 -06:00
#!/bin/bash
su postgres -s /bin/bash -lc "/usr/lib/postgresql/14/bin/pg_dumpall -d pleroma --format=custom > /saves/pleroma-`date +%Y-%m-%d-%H-%M`.pgdump"