milis/talimatname/genel/p/postgresql/postgresql.kos-sil

5 lines
122 B
Bash

#!/bin/sh
su - postgres -c 'mkdir -p /srv/pgsql/yedek'
su - postgres -c 'pg_dumpall > /srv/pgsql/yedek/yedek-`date +%s`'