blob: 1320df8175ed5d77591bdf4f56c98e2f8ae0c063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
#
# Run the gitlab backup script. The backup will be stored as
# /home/git/gitlab-backup.tar . A separate backup host will need to
# back that up.
#
# This script be run as the postgres user on a Baserock GitLab host.
set -e
export PATH=/usr/local/bin:/usr/bin:/bin
mkdir -p /home/postgres/dumps
cd /home/postgres/dumps
pg_dumpall > new.dump
mv new.dump gitlab.pg_dumpall
|