7.8 Restore Messages for Multiple Users

When you need to restore multiple message for multiple users without user intervention, you will want to use the GWDR GWRestore utility.

Prerequisites

  1. GWDR must be installed and a backup of the domain and post office must exist.

  2. The NFS server must be running and the restore area setup between GroupWise and GWDR.

  3. Access mode must be enabled for the specified backed up day.

  4. Restore mode must be linked to Access mode, this is enabled by default. This allows GWDR to connect the backup and send the data to GroupWise.

With the backups saved, the restore area connection setup and the backups loaded, you can begin the process of restoring messages with the GWRestore utility.

Restoration Steps

  • If running GroupWise 2014 or higher on Linux, there is a script for restoring all mail:

A script was created that makes merging two versions of a post office very simple. This script requires the version of GroupWise to be GroupWise 2014 or higher.

  1. Set up a Restore Area that uses the GroupWise Disaster Recovery server, see the GroupWise Disaster Recovery configuration documentation for more details

  2. Use the GroupWise Restore Script ( gwrestore.sh ) [http://reload.gwava.com/gwrestore.sh] script

  3. Make sure to modify the Variables section of the GroupWise Restore Script

    Edit the file: /opt/beginfinite/reload/setup/gwrestore.sh

  4. Edit the following section adding in the specific URL, admin user, password, domain and po for the GroupWise Administration. # Groupwise URLGWURL="https://151.155.183.65:9710/gwadmin-service"# GroupWise user with admin rightsGWADMIN="admin"# The password for the GroupWise user with admin rightsPWD="adminpassword"# The GroupWise Domain that the users are associated withDOM="YourDomain"# The GroupWise post office that the users are associated withPO="YourPO"# ----------------VARIABLES END--------------------------

    NOTE:If you modify the script on a Windows machine, to convert the script to Linux format use the "dos2unix" command on the Linux server once it is saved on the Linux server. Example:

    dos2unix gwrestore.sh

  5. Make the gwrestore.sh script executable:

    chmod 777 gwrestore.sh

  6. Run the gwrestore.sh script

    ./gwrestore.sh

  7. Select one of the options: ----------------------------------------------- 1. Specify a user to restore items for: This option is for a single user. Enter in the userid and hit Enter. 2. Restore all items for all users: This collects all of the users in the backup and restores all messages for all users. Note: If the message already exists in GroupWise it will skip that message. 3. Restore all items or a list of users: This option allows you to enter in specific options. However, this requires the a file to be created with the name "userlist.txt" placed into the same directory as the gwrestore utility (/opt/beginfinite/reload/setup) Users need to be added one at a time to the userlist.txt file. 4. Test Authentication Credentials: This option checks to see that the connection to the GroupWise Administration credentials are correct and the utility can properly connect to GroupWise.

  8. The GroupWise Restore Script tells the GroupWise system to create a restore request for each user in the post office specified in the variable section of the script.

  9. The GroupWise POA then looks inside of the message store in the GroupWise Restore Area associated with the GroupWise Disaster Recovery server, and brings across any mail items on the version of the post office on the GroupWise Disaster Recovery Server into the message store on the GroupWise post office.