Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
06d24982
Commit
06d24982
authored
Jun 01, 2016
by
Sven-Hendrik Haase
Browse files
borg-client: Dump postgresql database to /root if it is running
parent
252ba558
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/borg-client/templates/borg-backup.sh.j2
View file @
06d24982
#!/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
)
/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment