Page History
...
The following Operation Script is offered for Unix Shell to perform oerations frequently used operations by JS7 users such as creating backups by JS7 users .
- The script is available for Linux and MacOS® using bash shell. The script acts as a wrapper to classes provided by the H2® Java binary.
- The script terminates with exit code 0 to signal successful execution, with exit code 1 for command line argument errors and other exit codes for non-recoverable errors.
- The script is intended as a baseline example for customization by JS7 users and by SOS within the scope of professional services. Examples make use of H2® release 2.3.232.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# step 1: (re)move existing database mv /home/sos/h2 /home/sos/h2.backup # step 2: unzip .zip archive file to receive the resulting script.sql file unzip /tmp/database.zip # step 3: perform import, the database is automatically created ./operate-h2.sh import --url="/home/sos/h2/joc" --user=joc --file=/tmp/script.sql |
Overview
Content Tools