system backup-restore-mail
Use this command to configure the storage media and schedule for backups 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, 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 monthly-incremental-days 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 port <port_int>
set protocol {ext-usb | ext-usb-auto | iscsi_server | nfs | smb-winserver | ssh}
end
Variable |
Description |
Default |
Enter the encryption key for backup/restore. |
|
|
Enter the path of the folder on the backup server where the FortiMail unit will store the mailbox backups, such as:
This field appears only if the backup media is an NFS server or SSH server. |
FortiMail-mail-data-backup |
|
Enter the total number of full backups to keep on the backup media. Valid values are between 1 and 10. |
3 |
|
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 |
|
|
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 |
23 |
|
Enter the day of the month to perform the full backup. |
|
|
Enter how often to perform the monthly incremental backup. |
|
|
Enter the number of full backups to keep. |
|
|
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:
Other available options vary by your choice of backup media. |
nfs |
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 encryption-key <key> and hour-of-day <hours_int>. Note: You must enable backups and restore 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 |