############################ # MANAGING BACKUPS # Target: FortiOS 8.0.0 ############################ # Back up to and restore from an SCP server. These are native FortiOS 8.0.0 # commands; the optional final password encrypts the configuration file. execute backup config scp [<:port>] [] execute restore config scp [<:port>] [] # Back up to FortiManager or FortiGate Cloud, list revisions, and restore one. execute backup config management-station execute restore config management-station normal 0 execute restore config management-station normal # Use local flash revision storage on models that contain a supported disk. execute backup config flash execute revision list config execute restore config flash # Back up to and restore from USB. execute backup config usb [] execute restore config usb [] # FTP is unencrypted; use only on an isolated management network. execute backup config ftp [<:port>] [] [] [] execute restore config ftp [<:port>] [] [] [] # TFTP is unencrypted and has no authentication. execute backup config tftp [] execute restore config tftp [] # FortiOS 8.0.0 supports SFTP as a backup destination, but not as a restore # source. Restore the file with SCP, FTP, TFTP, USB, or the GUI instead. execute backup config sftp [<:port>] [] # FortiOS 8.0.0 YAML exports support FTP and TFTP destinations. The final # password encrypts the YAML content. execute backup yaml-config ftp [<:port>] [] [] [] execute backup yaml-config tftp [] # FortiOS 8.0.0 automatically detects FortiOS and YAML formats during restore; # this example restores a YAML file that has been placed on an SCP server. execute restore config scp [<:port>] [] # Mask secrets before sharing a diagnostic configuration. An obfuscated export # is not a disaster-recovery backup because masked secrets cannot be recovered. execute backup obfuscated-config sftp [<:port>] [] # Include settings at their default values in a full configuration export. execute backup full-config sftp [<:port>] []