Skip to main content
mulbzh
Explorer
January 14, 2025
Question

Automation backup doesn't work !

  • January 14, 2025
  • 2 replies
  • 1833 views

Hello and sorry for my english,

 

I want to schedule backup of my fortigate to SFTP server. So i installed new SFTP server. 

 

From CLI on fortigate, if i try the command : execute backup config sftp "/global/backup-global.conf" 172.21.0.32 SFTPuser 123654  it works perfectly, the configuration is save on remote server.

So after that a create action with this command and execute with super_admin profile.

After that i created trigger to launch Daily at 23:01

After i created stitch with first trigger and second action script.

 

But the stitch doesn't work at all. It is enable, script is OK so i don't understand why at all...

On my fortigate, i have vdom, the stitch is on global

thanks a lot

2 replies

srajeswaran
Staff
Staff
January 14, 2025
mulbzh
mulbzhAuthor
Explorer
January 14, 2025

Ok, i was just that. In config global, i have backup of all VDOM ?

srajeswaran
Staff
Staff
January 14, 2025

Yes

kaman
Staff
Staff
January 14, 2025

Hi mulbzh,

If the FortiGate is configured with multiple VDOMs, configure the script line as set script "config global


If you encounter any issues while running the command, please refer to the document below:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-send-automated-backups-of-the-configuration/ta-p/198364


Regards,
Aman

mulbzh
mulbzhAuthor
Explorer
January 14, 2025

and if i just want to save one VDOM. I have one VDOM name "external", i tried in action :


config vdom
edit external
execute backup config sftp "/externe/backup-externe.conf" 172.21.0.49 SFTPuser 123645

 

i tried also :

end

config vdom
edit external
execute backup config sftp "/externe/backup-externe.conf" 172.21.0.49 SFTPuser 123645

 



but it doesn't work !

mulbzh
mulbzhAuthor
Explorer
January 14, 2025

this script works manually but not with automation :

 

config global
execute backup config sftp "/global/backup-global.conf" 172.21.0.49 SFTPuser 12345
end
config vdom
edit external
execute backup config sftp "/externe/backup-externe.conf" 172.21.0.49 SFTPuser 12345
end