Skip to main content
shspivey
New Member
July 15, 2024
Solved

Automated Backup FTP Error

  • July 15, 2024
  • 9 replies
  • 7281 views

I am trying to set up automated backup over FTP on my FortiGate firewalls. I have the FTP server set up and running and have confirmed it is accessible through FileZilla. However when I enter the command through CLI I get an error message that I cannot decipher.

 

Here is my command: execute backup full-config ftp [filename] [ftp-server] [username] [pword]

 

And here is the error message I am receiving:

 

Connect to ftp server 10.10.10.100:21 ...
Please wait...
Send config file to ftp server via vdom root failed.
Command fail. Return code 5

 

I have searched but I cannot find anything specific to that error message. There are no entries in the log files on my FTP server, so it appears this error is directly related to the FortiGate.

Best answer by hbac

Hi @shspivey,

 

Please refer to this article: https://community.fortinet.com/t5/FortiGate/Technical-Tip-Backup-of-configuration-file-from-CLI-using-FTP/ta-p/212891

 

You can collect packet captures to see if it is a connectivity issue. 

 

Regards, 

9 replies

AEK
SuperUser
SuperUser
July 15, 2024

If there no related logs on the FTP server this may mean that the FortiGate couldn't reach the FTP server. Can you ping the FTP server from the FortiGate?

AEK
shspivey
shspiveyAuthor
New Member
July 15, 2024

Yes, I should have put that in the comments. I can PING and TELNET from the FortiGate to the FTP server without any issues.

Tumisho715
New Member
August 31, 2024

Experiencing same issue, not sure if i understand your solution, mind explaining it well for me, sending from FG at site A to FTP server at site B reachable via IPsec , can reach FTP server from site A however getting this error 

 

Please wait...
Send config file to ftp server via vdom root failed.
Command fail. Return code 5

hbac
Staff & Editor
hbacAnswer
Staff & Editor
July 15, 2024

Hi @shspivey,

 

Please refer to this article: https://community.fortinet.com/t5/FortiGate/Technical-Tip-Backup-of-configuration-file-from-CLI-using-FTP/ta-p/212891

 

You can collect packet captures to see if it is a connectivity issue. 

 

Regards, 

shspivey
shspiveyAuthor
New Member
July 15, 2024

Thanks. I will test that now.

AEK
SuperUser
SuperUser
July 15, 2024

If your password contains special characters try put it between quotes in the exec backup command.

AEK
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!