FortiGateのバックアップは、システム設定・ポリシー・VPN・証明書などを保存し、障害や誤設定時に復旧するための基本作業です。
特に以下を意識することが重要です。
※7.2以降では YAML形式 での保存も可能。自動化や差分管理に向きます。
# TFTP(暗号化付き)
execute backup config tftp <file.conf> <tftp_server_ip> <password>
# FTP
execute backup config ftp <file.conf> <ftp_server>[:port] <user> <pass> [<password>]
# SCP
execute backup config scp <file.conf> <scp_server>[:port] <user> [<password>]
# SFTP(FortiOS 7.0.1以降)
execute backup config sftp <file.conf> <sftp_server>[:port] <user> <pass> [<password>]
# 全デフォルト設定も含めたい場合
execute backup full-config <protocol> ...
CLIでパスワードを指定すると「暗号化バックアップ」になります。
execute restore config tftp <file.conf> <tftp_server_ip> [<password>]
execute restore config ftp <file.conf> <ftp_server>[:port] <user> <pass> [<password>]
execute restore config scp <file.conf> <scp_server>[:port] <user> [<password>]
execute restore config sftp <file.conf> <sftp_server>[:port] <user> <pass> [<password>]
リストア後は必ず再起動が発生します。
execute backup
コマンドを実行可能。以上、FortiGateのバックアップ・リストアについてでした。
最後までお読みいただき、ありがとうございました。