Blog

SnTT: Show-and-Tell Thursdays: Local scheduled compaction of your desktop or laptop


Tags :


I manually run ncompact with the -B flag from time to time locally to recover whitespace.  I then pondered why this cannot be done on schedule, as the server does.  Your local client has a hidden ($Programs) view.  Here is the image ..... Image:SnTT: Show-and-Tell Thursdays: Local scheduled compaction of your desktop or laptop










Image:SnTT: Show-and-Tell Thursdays: Local scheduled compaction of your desktop or laptop

So what do we do from there?  We open designer to see if there is a hidden Program form we can expose.  None there so off to the address book template.

I grab the Server\Program form and paste it into the local names.nsf database.  It is necessary to remove the HTMLAttributes field as that cannot be found locally, we well as the Last Modified field.

I then use the Create - Server - Program menu to create a document to compact each night at 2am with the -B flag. Make sure you close out of all your databases on the client.  I also unhid the view for easy manipulation.

So the log the next morning shows....
03/14/2006 02:00:01 AM  Compacting admin\xxxx.nsf (Domino R5 Admin Book)
03/14/2006 02:00:02 AM  Releasing unused storage in database admin\xxxx.nsf...
03/14/2006 02:00:03 AM  Compacted  admin\xxxx.nsf, 896K bytes recovered (24%)
03/14/2006 02:00:03 AM  Compacting admin\xxxxxxxx.nsf ()
03/14/2006 02:00:03 AM  Releasing unused storage in database admin\xxxxxxxx.nsf...


Right on time!  But leave the client up and databases closed as a side note.