Project

General

Profile

« Previous | Next » 

Revision 11429

bin/after_import: support turning off the end-of-import backup for imports that are not the full database

View differences:

after_import
4 4

  
5 5
cd "$(dirname -- "${BASH_SOURCE[0]}")/.."
6 6

  
7
: "${backup=1}"
8

  
7 9
set -x
8 10

  
9 11
bin/waitpid "$@"
10 12

  
11 13
bin/make_analytical_db
12 14

  
13
make backups/TNRS.backup-remake &
14
dump_opts=${dump_opts---exclude-schema=public} \
15
make backups/vegbien.$version.backup/test &
16
sleep 10 # wait for backup files to be created
17
backups/fix_perms
18
wait # wait for asynchronous commands
15
if test "$backup"; then
16
	make backups/TNRS.backup-remake &
17
	dump_opts=${dump_opts---exclude-schema=public} \
18
	make backups/vegbien.$version.backup/test &
19
	sleep 10 # wait for backup files to be created
20
	backups/fix_perms
21
	wait # wait for asynchronous commands
22
fi

Also available in: Unified diff