Skip to content
Snippets Groups Projects
Commit 8541a655 authored by root's avatar root
Browse files

backup-tar: Avoid error message and possibility of spurious success on anna

parent bffffce5
No related branches found
No related tags found
No related merge requests found
POSTGRES=/root/backup/postgres (
mkdir -p $POSTGRES set -euo pipefail
sudo -u postgres pg_dumpall | xz -9 -T2 > $POSTGRES/postgres-anna.dump.xz POSTGRES=/root/backup/postgres
mkdir -p $POSTGRES
(cd ~postgres; sudo -u postgres pg_dumpall) | xz -9 -T2 > $POSTGRES/postgres-anna.dump.xz
)
SOURCES="/srv/pdsbot/ /root/backup/postgres/" SOURCES="/srv/pdsbot/ /root/backup/postgres/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment