Commit 06d24982 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

borg-client: Dump postgresql database to /root if it is running

parent 252ba558
#!/usr/bin/env bash
# In case there is postgresql running, dump all of it somewhere.
systemctl status postgresql && pg_dumpall -f /root/postgres_dump.sql
borg create -v --stats -C lz4 -e /proc \
-e /sys -e /dev -e /run -e /tmp -e /var/cache \
{{ backup_host }}:{{ backup_dir }}::$(date -I) /
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment