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
Can you make sure you add "config global" to the stitch.
Ok, i was just that. In config global, i have backup of all VDOM ?
Yes
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:
Regards,
Aman
Created on ‎01-14-2025 04:38 AM Edited on ‎01-14-2025 05:00 AM
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 !
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
I did a test in my LAB and it works with below.
config global
execute backup config ftp "/global/config.conf" 10.x.x.x anonymous anonymous
end
config vdom
edit root
execute backup config ftp "/root/configroot.conf" 10.x.x.x anonymous anonymous
Are you seeing any errors while attempting to test the stitch?
User | Count |
---|---|
2593 | |
1382 | |
800 | |
659 | |
455 |
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.