#!/bin/bash # Load functions . ./grommunio_functions.sh #### Examples #### ## List all domains # Usage: grom_domains # Example 1: List all domains #grom_domains ## List all users for one or all domains # Usage: grom_users [domain] # Example 1: List users of all domains #grom_users # Example 2: List users of domain abc.com #grom_users abc.com ### IMPORTANT ### # Ensure that the following binaries are available for the backup functionality # gromox-exm2ical, gromox-exm2vcf, bzip2 # # If not available, install them as follows: #zypper install bzip2 #cd /usr/sbin && ln -s gromox-exm2eml gromox-exm2ical #cd /usr/sbin && ln -s gromox-exm2eml gromox-exm2vcf ## Backup user objects like calender, contacts, etc. to a tar.bz2 file per domain # Usage: grom_backup_messages domain target_folder message_type # 'domain' can be a domain name such as 'abc.com' or 'all' for all domains # 'target folder' defines the folder where the resulting files are stored # 'message_type' one of the following types: calendar, contacts, journal, tasks, stickynotes # or 'all' for all supported message types # NOTE: mail messages are not backed up by intention as there are enough other means to backup mails # Example 1: Backup all objects for all domains #grom_backup_messages all /root/backup all # Example 2: Backup all calendar and contact objects for all domains grom_backup_messages all /root/backup calendar grom_backup_messages all /root/backup contacts # Example 3: Backup all objects for domain abc.com #grom_backup_messages all /root/backup all