[skip ci] add debugging info
This commit is contained in:
parent
f135aaff97
commit
f32a91826d
4 changed files with 9 additions and 4 deletions
|
@ -16,7 +16,7 @@ function main() {
|
||||||
#disable for faster testing
|
#disable for faster testing
|
||||||
#backup-roles 'oc_'
|
#backup-roles 'oc_'
|
||||||
#backup-db-dump
|
#backup-db-dump
|
||||||
#echo test-content > /var/backups/tmpfile
|
ls -l /var/backups/
|
||||||
backup-directory '/var/backups/'
|
backup-directory '/var/backups/'
|
||||||
|
|
||||||
end-maintenance.sh
|
end-maintenance.sh
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
if test -f "/var/backups/config/config.orig"; then
|
if test -f "/var/backups/config/config.orig"; then
|
||||||
|
|
||||||
rm /var/backups/config/config.php
|
rm /var/backups/config/config.php
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eeo pipefail
|
set -Eeox pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|
||||||
|
@ -15,8 +15,9 @@ function main() {
|
||||||
|
|
||||||
drop-create-db
|
drop-create-db
|
||||||
|
|
||||||
restore-roles
|
#skip for fast testing
|
||||||
restore-db
|
#restore-roles
|
||||||
|
#restore-db
|
||||||
restore-directory '/var/backups/'
|
restore-directory '/var/backups/'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
if [ ! -f "/var/backups/config/config.orig" ]; then
|
if [ ! -f "/var/backups/config/config.orig" ]; then
|
||||||
|
|
||||||
rm -f /var/backups/config/config.orig
|
rm -f /var/backups/config/config.orig
|
||||||
|
|
Loading…
Reference in a new issue