Binary dump uses the
proutil dbname -C dump tablename directory command.
Binary load uses the
proutil dbname -C load filename command.
The binary dump creates files named "tablename.bd". Those are what you feed to the binary load.
As for writing your script... that's a bit out of scope. There are, of course, many ways to write such scripts. The core of one fairly simplistic method would be to use a bit of 4gl like this:
Code:
output to "bindump.sh".
for each _file no-lock where not _hidden:
put unformatted
"proutil dbname -C dump " + _file-name + " /dumpdir"
skip.
end.
The generation of the load script is left as an exercise