On May 30, 2019, at 5:44 AM, sergio ruiz <sergio.rrd@gmail.com> wrote:
...
Also, one thing that I find invaluable in troubleshooting applications written using relational databases is to be able to be able to just dump the production database and load it up on my local machine. Is this possible using gemstones?
Backup and restore?
This would be a valid alternative to doing `bu snapshot` (a form of backup) and newExtent ...
In GsDevKit_home, use $GS_HOME/bin/todeBackup and
$GS_HOME/bin/todeRestore to do a backup and restore ... these are
bash scripts that call the tODE commands `bu backup` and `bu
restore`, you will see docs for these commands when do the `man
bu` ...
if you are doing regular production backups (which you should be) you could simply restore from backup into your sandbox stone, whenever you want to start with a fresh extent ...
While we are at it, take a look at the bash script
$GS_HOME/bin/todeIt that allows you to call tode commands from
bash ... a convenient way for you to do your deployment scripts,
where you can write your own tODE command line scripts and then
call them from bash ...
With GemStone 3.5.0 (not yet released), it will be practical to
write topaz/smalltalk/stash[1] bash command line scripts for
deployment ... I plan to give a talk on stash[1] at ESUG this
year:)
Dale