Hello,
newbie using Fortigate.
I created an automation sticth to upload a config backup to an SFTP server. I used the following CLI command
execute backup config sftp /path/firewall_backup.cfg SFTP_IP SFTP_user SFTP-password
If i run the above "CLI" command manually, file is created using the name I specify (in the example, firewall_backup.cfg)
if I run the same command via an automation stitch, filename is prefixed with the fortigate serial number (i.e. it becomes FG123456789_firewall_backup.cfg)
Of course such prefix doesn't disturb me, but I would like to understand WHY this prefix... Checked on documentation but since I'm a newbie on fortigate was unable to find the right point.
Can someone help me understanding this behaviour?
Thanks in advance
Solved! Go to Solution.
Hi LC-AT,
Thanks for your prompt response. I've tested the relevant on a Windows-based Open-SSH server, I do not see the same behavior. If this is an issue for you, I would suggest you to open a support ticket with us via https://support.fortinet.com. With a ticket opened, we can have more resources to perform the testing to look into your issue.
Created on 05-05-2022 10:31 PM
Hello LC-AT,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
Fortinet Community Team
Hi LC-AT,
Good day to you. Can you let us know what is the firmware and what is the SFTP server that you are currently using? Would it be possible for you to send us the command that you configured in the automation stitch to further investigate? You may remove the SFTP IP and login credential accordingly.
Hi KCheng,
thanks for investigating, these are the info
Current version
edit "backup-cfg"
set action-type cli-script
set script "execute backup config sftp /fortigate/firewall01.cfg 10.x.y.z sftp-forti password_omitted"
set execute-security-fabric enable
set accprofile "super_admin"
next
Tried also removing "set execute-security-fabric enable" but no difference.
@kcheng wrote:Hi LC-AT,
Good day to you. Can you let us know what is the firmware and what is the SFTP server that you are currently using? Would it be possible for you to send us the command that you configured in the automation stitch to further investigate? You may remove the SFTP IP and login credential accordingly.
Hi LC-AT,
Thanks for your prompt response. I've tested the relevant on a Windows-based Open-SSH server, I do not see the same behavior. If this is an issue for you, I would suggest you to open a support ticket with us via https://support.fortinet.com. With a ticket opened, we can have more resources to perform the testing to look into your issue.
Hello,
as I told on original post, this is not an issue for me.. I'm just curious about that.. Probably logging SFTP commands could lead us to the answer..
For now the important thing is the backup!
Thanks for help
User | Count |
---|---|
2061 | |
1175 | |
770 | |
448 | |
343 |
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 2025 Fortinet, Inc. All Rights Reserved.