Notesdatabase size property

hi guys,

I was tasked to create a back-up facility in the a database using lotus script. The code i have made creates a new database, then creates in it a new view. And one of the task of the back-up facility is to create multiple volumes of these backup databases when the size of it is greater than a stated size limit. For example, while copying documents to the back database, i always check for the size of the db, using notesdatabase.size property. unfortunately the notesdatabase.size does not update its value during runtime, therefore preventing the code to triggering the function in creating a new backup database when it has exceeded the allowable size limit for a backup db. Hope someone can help me on this…thanks

Andres

Subject: RE: notesdatabase size property

Have you tried using the database size limit feature of Notes to prevent writing documents in excess of the allowed size limit? You start a new database when the current one returns an error when you attempt to write.

Otherwise, you might try the Delete statement to clear the backup database object out of memory, and reload it from the path.

Subject: notesdatabase size property

jhon, i’m not sure if this would work, but try to issue db.Compact() first, before start copying docs.

aldrin :slight_smile: