Adapt restore to taiga
This commit is contained in:
parent
b753ba14cc
commit
ad7a41f0d7
1 changed files with 3 additions and 10 deletions
|
@ -12,19 +12,12 @@ function main() {
|
||||||
file_env POSTGRES_USER
|
file_env POSTGRES_USER
|
||||||
|
|
||||||
# Restore latest snapshot into /var/backups/restore
|
# Restore latest snapshot into /var/backups/restore
|
||||||
rm -rf /var/backups/restore
|
|
||||||
restore-directory '/var/backups/restore'
|
restore-directory '/var/backups/restore'
|
||||||
|
|
||||||
rm -rf /var/backups/gitea/*
|
|
||||||
rm -rf /var/backups/git/repositories/*
|
|
||||||
cp -r /var/backups/restore/gitea /var/backups/
|
|
||||||
cp -r /var/backups/restore/git/repositories /var/backups/git/
|
|
||||||
|
|
||||||
# adjust file permissions for the git user
|
cp -r /var/backups/restore /media
|
||||||
chown -R 1000:1000 /var/backups
|
|
||||||
|
|
||||||
# TODO: Regenerate Git Hooks? Do we need this?
|
# adjust file permissions for the taiga user
|
||||||
#/usr/local/bin/gitea -c '/data/gitea/conf/app.ini' admin regenerate hooks
|
chown -R taiga:taiga /media
|
||||||
|
|
||||||
# Restore db
|
# Restore db
|
||||||
drop-create-db
|
drop-create-db
|
||||||
|
|
Loading…
Reference in a new issue