Created on 03-02-2020 06:31 AM Edited on 06-27-2023 06:22 AM By Jean-Philippe_P
Description
This article explains how to back up & restore the config file from an FTP server.
Solution
Commands for backing up the config to an FTP are mentioned below:
execute backup full-config ftp {string} {ftp server}[:ftp port] {user}{passwd}{passwd}
{string} <----- Configure file name (path) on the remote server.
{ftp server}[:ftp port] <----- FTP server IP or FQDN, can be attached with port.
{user} {passwd} <----- FTP username followed by the password.
{passwd} <----- Optional password to protect the backup content.
Find the below-mentioned example from CLI:
execute backup full-config ftp backup.conf 172.31.132.105:21 test 123456 test123
This operation will overwrite the current setting and could possibly reboot the system!
Do you want to continue? (y/n)y
Please wait...
Connect to ftp server 172.31.132.105:21 ...
Get config file from ftp server OK.
File check OK.
backup.conf is the config file name, 172.31.132.105 is the IP address of the FTP server and 21 is the port number followed by the username test, password 123456 & test123 as encryption password.
Commands for restoring the config from FTP are mentioned below:
execute restore config ftp {string} {ftp server}[:ftp port] {user} {passwd}
{string} <----- Configure file name (path) on the remote server.
{ftp server}[:ftp port] <----- FTP server IP or FQDN, can be attached with port.
{user} {passwd} <----- FTP username followed by the password.
Below is mentioned an example from CLI:
execute restore config ftp backup.conf 172.31.132.105:21 test 123456
This operation will overwrite the current setting and could possibly reboot the system!
Do you want to continue? (y/n)y
Please wait...
Connect to ftp server 172.31.132.105:21 ...
Get config file from ftp server OK.
File check OK.
backup.conf is the config file name, 172.31.132.105 is the IP address of the FTP server and 21 is the port number followed by the username test and password 123456.
Related documents:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.