mkbackupdir

The mkbackupdir utility creates and synchronizes the backup directory with the information in the message store. It is used in Solstice Backup (Legato Networker). The backup directory is an image of the message store. It does not contain the actual data. mkbackupdir scans the message store's user directory, compares it with the backup directory, and updates the backup directory with the user names and mailbox names under the message store's user directory.

FIGURE  2-1 Backup directory hierarchy

The variables in the backup directory contents are:

ADM_ROOT  

The message store administrator root directory as specified in the /etc/opt/SUNWmail/ims/ims.cnf file. The default directory is /var/opt/SUNWmail/ims/adm.  

group  

The user-defined group directory created by the system administrator.  

user  

Name of the message store user.  

folder  

Name of the user mailbox directory.  

mailbox  

Name of the user mailbox.  

The mkbackupdir utility creates:

a user directory under the backup directory for each new user in the message store
a user folders hierarchy under the user/Mail subdirectory
a .nsr file for each subdirectory that contains user mailboxes

The user folder hierarchy (user/Mail) contains the same structure as the user/Mail directory in the message store. The INBOX and the user mailboxes under the folder hierarchy contain zero length files that represent the mailbox names that are to be saved. They do not contain the actual data.

The .nsr file is the NSR configuration file that informs the Networker to invoke imsasm. imsasm then creates and interprets the data stream.

Each user mailbox is a file of zero length. This includes the INBOX, which is located under the user directory.


Syntax

 
mkbackupdir [-d date] [-l config_file_location]
 

The options for this command is:

-d date  

Creates a backup directory that contains only those mailboxes that have been modified since the specified date. date must be of the form yyyymmdd, where yyyy specifies the year, mm specifies the month, and dd specifies the day. This option is used to perform incremental backups.  

-l config_file_location  

Location of Message Access Services configuration file (ims.cnf). If the -l option is not specified, the default location (/etc/opt/SUNWmail/ims/) will be used.  


Example

To create the ADM_ROOT/backup directory, enter the following:

 
% mkbackupdir
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.