Re: [base] Cloning a BASE instance
Before starting to clone BASE you could try to reset list settings with File -> Reset list settings ... select memory and database in the pop-up. BASE stores uploaded or generated files as files in the filesystem. The database keep tracks of file locations. There is no information in files needed for having a consitent database, but of course removing files may upset BASE since a file will be missing somewhere. Cloning a BASE installation? Well there is no instruction for this. I simply do a sequence of commands on my macbook and hope the files generated will allow me to create a copy of my BASE server. It is a bit crude since I make a snapshot of all mysql dbs not only BASE dbs, but I only run BASE on my machine: #!/bin/sh BASE2TGZ=/tmp/base2.tgz MYSQL5TGZ=/tmp/mysql5.tgz echo Stopping tomcat tomcatstop mysqlctl stop echo Backing up basefiles at /path/to/base2 cd /path/to/base2 tar zcf $BASE2TGZ base2 echo Backing up /path/to/db/mysql5 cd /path/to/db sudo -u root tar zcf $MYSQL5TGZ mysql5 mysqlctl start echo Starting tomcat tomcatstart echo Done. Backup files are located in /tmp ls -lsh $BASE2TGZ $MYSQL5TGZ You of course need to keep a safe copy of base.config and other configuration files from your BASE installation. I haven't tested a restore in a long time ... haven't had the need. So you better test it before you trust it. Cheers, Jari Olivier Lefevre wrote: > Are there instructions and/or scripts anywhere to assist with the > cloning of a BASE2 instance or is it a use-your-brain-dude kind of > thing? My problem is that I got a dump of a MySQL db but nothing > else and there seem to be a lot of "dangling links" manifesting > themselves in red-band error messages here and there, e.g., "Item > not found: RawDataType[id=blah]". That is not surprising since > BASE seems to hold a lot of stuff in files on disk rather than > in the db but it's unclear how to go about fixing that if you > are not familiar with BASE. It would be nice if there was a > fool-proof, automated procedure for cloning a BASE2 instance. > > > -- > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > ___ > The BASE general discussion mailing list > basedb-users@lists.sourceforge.net > unsubscribe: send a mail with subject "unsubscribe" to > basedb-users-requ...@lists.sourceforge.net -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to basedb-users-requ...@lists.sourceforge.net
Re: [base] Cloning a BASE instance
The problem with zipping the BASE tree is that is no guarantee that all necessary files are under the BASE root. From looking at base.config there are at least three more roots to consider: * secondary storage area * plugins area * user files area Any others? -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to basedb-users-requ...@lists.sourceforge.net
Re: [base] Cloning a BASE instance
Olivier Lefevre wrote: > The problem with zipping the BASE tree is that is no guarantee > that all necessary files are under the BASE root. From looking > at base.config there are at least three more roots to consider: > * secondary storage area > * plugins area > * user files area > Any others? The only way to know is to try and see what happens. I guess a lot depends on the specific configuration. For example, the secondary storage area is probably a feature that is not used by many. And it will be different to clone a standard BASE installation compared to an installation that has installed lots of external plug-ins and extensions and is using job agents for running plug-ins. If you get it to work, can you please write down what you did and post it to the mailing list? /Nicklas -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to basedb-users-requ...@lists.sourceforge.net
Re: [base] Cloning a BASE instance
The steps I send covers my needs in that I do not use a secondary storage area, user files area is covered in my previous posting, and installed plug-ins are backed up by normal computer backups. But you are right, for a full clone you should also copy your complete BASE installation and the plug-ins. However, depending on which plug-ins you run you may need to install other external packages and may get binary compatibility issues (everything is not in Java). My needs are covered with the dumps in my previous posting since I use the BASE snapshot to recover from really stupid code that I sometimes write and wreck my BASE database. For me it is enough to restore base userfiles and the database. Plug-ins and base.config (and similar) are usually not harmed by poor SQL statements. Jari Olivier Lefevre wrote: > The problem with zipping the BASE tree is that is no guarantee > that all necessary files are under the BASE root. From looking > at base.config there are at least three more roots to consider: > * secondary storage area > * plugins area > * user files area > Any others? -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to basedb-users-requ...@lists.sourceforge.net