config : system backup-restore-mail
 
system backup-restore-mail
Use this command to configure backup and restoration of email user’s mailboxes.
For the initial backup, whether manually or automatically initiated, the FortiMail unit will make a full backup. For subsequent backups, the FortiMail unit will make the number of incremental backups that you selected in incremental <incremental-backups_int>, then make another full backup, and repeat this until it reaches the maximum number of full backups to keep on the backup media, which you selected in full <full-backups_int>. At that point, it will overwrite the oldest full backup.
For example, if full <full-backups_int> is 3 and incremental <incremental-backups_int> is 4, the FortiMail unit would make a full backup, then 4 incremental backups. It would repeat this two more times for a total of 3 backup sets, and then overwrite the oldest full backup when creating the next backup.
Syntax
config system backup-restore-mail
set day-of-week <day_str>
set folder <path_str>
set full <full-backups_int>
set host <fortimail-fqdn_str>
set hour-of-day <hours_int>
set incremental <incremental-backups_int>
set port <port_int>
set protocol {ext-usb | ext-usb-auto | iscsi_server | nfs | smb-winserver | ssh}
set status {enable | disable}
end
 
Variable
Description
Default
day-of-week <day_str>
Enter which day of the week to schedule backups on that day.
Note: Scheduled backups do not occur if the backup media is an automatically-detected USB disk.
sunday
folder <path_str>
Enter the path of the folder on the backup server where the FortiMail unit will store the mailbox backups, such as:
/home/fortimail/mailboxbackups
This field appears only if the backup media is an NFS server or SSH server.
FortiMail-mail-data-backup
full <full-backups_int>
Enter the total number of full backups to keep on the backup media. Valid values are between 1 and 10.
3
host <fortimail-fqdn_str>
If you want to restore all mailboxes from a backup labeled with the fully qualified domain name (FQDN) of a previous FQDN, or that of another FortiMail unit, enter the FQDN of the backup that you want to restore.
For example, to restore the most recent backup made by a FortiMail unit named fortimail.example.com, enter fortimail.example.com.
 
hour-of-day <hours_int>
Enter the hour of the day, according to a 24-hour clock, on the days of the week at which to make backups.
For example, to make backups at 9 PM, enter 21.
23
incremental <incremental-backups_int>
Enter the number of incremental backups to make between each full backup. Valid values are between 0 and 20.
Incremental backups can reduce the amount of time and disk space required for each backup, but may increase the amount of time required to restore the backup, and depend on a previous full backup, because incremental backups only contain the differences since the previous full backup.
4
port <port_int>
Enter the TCP port number on which the backup server listens for connections.
This field does not appear if the backup media is a USB disk.
22
protocol {ext-usb | ext-usb-auto | iscsi_server | nfs | smb-winserver | ssh}
Enter one of the following types of backup media:
ext-usb: An external hard drive connected to the FortiMail unit’s USB port.
ext-usb-auto: An external disk connected to the FortiMail unit’s USB port. Unlike the previous option, this option only creates a backup when you connect the USB disk, or when you manually initiate a backup rather than according to a schedule.
iscsi_server: An Internet SCSI (Small Computer System Interface), also called iSCSI, server.
nfs: A network file system (NFS) server.
smb/winserver: A Windows-style file share.
ssh: A server that supports secure shell (SSH) connections.
Other available options vary by your choice of backup media.
nfs
status {enable | disable}
Enable to allow backups and restoration to occur, whether manually initiated or automatically performed on schedule. Also configure the backup media in protocol {ext-usb | ext-usb-auto | iscsi_server | nfs | smb-winserver | ssh} and, if applicable to the type of the media, configure a schedule in day-of-week <day_str> and hour-of-day <hours_int>.
Note: You should enable backups/restoration after configuring the other options if a scheduled backup will occur before you configure protocol {ext-usb | ext-usb-auto | iscsi_server | nfs | smb-winserver | ssh}. Failure to do so would result in a failed backup attempt, requiring you to wait for the failed attempt to terminate before you can continue to configure this feature.
disable
system mailserver