Trigger an online backup of jade?

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Carl Ranson >> Mon, 9 Jul 2001 5:12:47 GMT

Is there an easy way to trigger an online backup of a Jade system?

I wan't to get the same effect as logging in as administrator and selecting Admin|Backup from the menu. Either from it's own icon or as a menu item in my application would be nice.

Does anyone know if this uses the supplied JadeBackupDatabaseDialog class?

Any pointers would be apreciated.

Cheers,
CR

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Darrell Duniam >> Mon, 9 Jul 2001 5:22:53 GMT

Carl,

Check out the JadeDatabaseAdmin class in the Online Help - there's lots of good examples too. I used this stuff as a basis from which to build a background (non-GUI) application into BaseSchema to perform online backups from the server node.

regards,
darrell.

"Carl Ranson" <carl.ranson@unify.co.nz> wrote in message news:iTnz1cDCBHA.339@cnwchcs54.cnw.co.nz...
Is there an easy way to trigger an online backup of a Jade system?

I wan't to get the same effect as logging in as administrator and selecting Admin|Backup from the menu. Either from it's own icon or as a menu item in my application would be nice.

Does anyone know if this uses the supplied JadeBackupDatabaseDialog class?

Any pointers would be apreciated.

Cheers,
CR

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Carl Ranson >> Mon, 9 Jul 2001 5:39:47 GMT

The help for JadeDatabaseAdmin.backupAllDbFiles contains the following section?

Set the quiesce parameter to false to allow updates during the backup process. When restoring a database backed up fully online (that is, this parameter is set to false), the restoration process requires the recovery of backed up transaction logs. A backup recovery is required after restoring files that were fully backed up online (that is, the quiesce parameter was set to false).

I understand what this is saying (I think)....that the online backup does the DAT files (which is the data as at the last flushed version) and the backup logs (which are the committed but not flushed transactions)....

Can anyone clarify:
if the transaction logs are also backed up as part of the backupAllDbFiles method?
whats required to restore one of these backups?

Cheers,
CR

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Stephen Persson >> Mon, 9 Jul 2001 21:58:57 GMT

Hi,
We perform an online backup on our apps every night at midnight, using a re-implementation of CardSchemas mSimpleBackup method. All of our apps have a JobProcessor application that runs continuously behind the scenes doing any functions that require no user intervention, such as online backups, exchange rate lookups, reminder notices or whatever..

When it kicks off the online backup it calls a BaseSchema method we have on the Applcation class, mDatabaseBackup(methodParam: Object); (This can also be called using the startAppMethod function). The methodParam we pass is an object containing all the details of the backup we want to take place - values for verifyFiles, compressFiles, overwriteFiles, quiesce and the backup directory (which we always put on another server on the network).

Initially we always set quisce to true, so it would not need the logfiles when recovering the database. However this locked the entire database for the duration of the backup( ~16 mins for our largest system, with verification and compression set to true), and when the system is a busy global web site logging each hit, that was soon thrown out the window. We now have quisce set to false which does not lock the database but does require the logfiles when recovering the database, which means ArchivalRecovery must be turned on and you must keep old logfiles at least up until your last online backup. I have been meaning to for a while now, writting in some code to delete the old logfiles after the online backup, since I don't think Jade does this itself. One of our apps produces ~10-15 12Mb logfiles a day (and every Monday ~35-40 files). As you can probably imagine if we forget to manually delete the old logfiles for a week or so, we have about 2Gb+ of logfiles waiting for us!

As for recovery we recover the online backup via dbutil (roll forward and recovery) to the clients beta system ~once a month, and have never any problems doing so (We have not recovered a system since we changed quisce to false though). We just copy across the logfiles to our beta system, point to the location of the online backup, and Jade does the rest.

Stephen Persson

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Krull >> Tue, 10 Jul 2001 0:17:20 GMT
Initially we always set quisce to true, so it would not need the logfiles when recovering the database. However this locked the entire database for the duration of the backup( ~16 mins for our largest system, with verification and compression set to true), and when the system is a busy global web site logging each hit, that was soon thrown out the window. We now have quisce set to false which does not lock the database but does require the logfiles when recovering the database, which means ArchivalRecovery must be turned on and you must keep old logfiles at least up until your last online backup.

If ArchivalRecovery is disabled, the JADE backup process ensures that only a single transaction log is required for backup recovery and takes a backup of this transaction to the default backup directory automatically. That is the only log required to recover an online backup to a consistent state. If you believe that you don't need roll-foward capability ( normally only the case for non-business critical systems), then you can leave ArchivalRecovery disabled without invalidating your online backups.
I have been meaning to for a while now,
writting in some code to delete the old logfiles after the online backup, since I don't think Jade does this itself.

It certainly doesn't remove the logs if ArchivalRecovery is enabled, that's what the option means "don't remove the logs so that they can be used for archival or roll-forward recovery". Most sites with business (or mission) critical systems require that transaction logs are retained so that they can perform a roll-forward recovery in the event of a disk subsystem failure (media or controller etc.).

It is worth pointing out here that if you are depending on being able to use roll-forward recovery in the event of a catastrophic failure to the disk-subsystem hosting your data files, it is *essential* that the transaction logs are on a completely separate disk-subystem with a separate cables and controller. It is also *essential* that the transaction-log subsystem is mirrored and highly recommended that the data file subsystem is mirrored as well. This typically means use of RAID 1 combinations with striping for performance e.g RAID 10 or 0+1. Some sites have located tran logs and data on a common RAID 5 subsystem with the belief that RAID 5 will protect them against media failure, However, RAID 5 can only handle single drive failures; whereas a common controller or cable failure can corrupt the entire array!
One of our apps produces ~10-15
12Mb logfiles a day (and every Monday ~35-40 files). As you can probably imagine if we forget to manually delete the old logfiles for a week or so, we have about 2Gb+ of logfiles waiting for us!

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Barry Gratton >> Tue, 10 Jul 2001 20:10:08 GMT

At Mitsubishi we also use the userNotification event to detect when a log has been closed
so the the log can be compressed and copied to another server for backup. We have kept the
log file size small so that we close on every 30 minutes or so during the day. Also copy these audits
via ftp to a remote DR server which has a production environment preconfiqured for quick
recovery.

So with a backup from the previous night and these logs the most you could lose at worst is the
30 minutes of trans in the current log.

Linc/DMS also had a feature where you could have a duplicate audit file. That wrote the same trans
to different packs as they happened for safety.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Trigger an online backup of jade?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:03 pm

by Carl Ranson >> Tue, 10 Jul 2001 22:50:05 GMT

Lots of good ideas being posted. Thanks to those who've replied.

CR


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests

cron