1 |
9564
|
aaronmk
|
#!/bin/bash -e
|
2 |
9586
|
aaronmk
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/subdir.run
|
3 |
9854
|
aaronmk
|
.rel ../../../lib/sh/resume_import.sh
|
4 |
9564
|
aaronmk
|
|
5 |
|
|
if self_not_included; then
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
#### import resuming
|
9 |
|
|
|
10 |
|
|
table=raw_occurrence_record
|
11 |
9567
|
aaronmk
|
pkey_name=id
|
12 |
9564
|
aaronmk
|
|
13 |
9566
|
aaronmk
|
# import_resume_pos() takes 6 min to run, with 37 iterations
|
14 |
9564
|
aaronmk
|
|
15 |
9583
|
aaronmk
|
dumpfile="$(canon_rel_path "$top_dir/../_src/${top_filename/%.data.sql/.dump}")"
|
16 |
|
|
echo_vars dumpfile
|
17 |
|
|
|
18 |
|
|
func_override ^.preamble.sql/make__resume_import_sh
|
19 |
|
|
^.preamble.sql/make()
|
20 |
9681
|
aaronmk
|
{
|
21 |
9692
|
aaronmk
|
echo_func; set_make_vars
|
22 |
9681
|
aaronmk
|
top_file="$dumpfile" self_make ^.preamble.sql/make__resume_import_sh
|
23 |
|
|
}
|
24 |
9583
|
aaronmk
|
|
25 |
9564
|
aaronmk
|
fi
|