first commit
This commit is contained in:
commit
098f59b644
3632 changed files with 518046 additions and 0 deletions
13
openproject/control/backup/entrypoint.sh
Executable file
13
openproject/control/backup/entrypoint.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
timestamp=$(date +%s)
|
||||
mkdir -p /backups
|
||||
cd /backups
|
||||
filename="${timestamp}-pgdata.tar.gz"
|
||||
echo "Backing up PostgreSQL data into backups/${filename}..."
|
||||
tar czf "${filename}" -C "$PGDATA" .
|
||||
filename="${timestamp}-opdata.tar.gz"
|
||||
echo "Backing up OpenProject assets into backups/${filename}..."
|
||||
tar czf "${filename}" -C "$OPDATA" .
|
||||
echo "DONE"
|
||||
Loading…
Add table
Add a link
Reference in a new issue