Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
mulbzh
New Contributor II

Automation backup doesn't work !

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

7 REPLIES 7
srajeswaran
Staff
Staff

Can you make sure you add "config global" to the stitch.

 

Ref: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-configure-Automation-Stitches-for-M...

Regards,
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
mulbzh
New Contributor II

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

srajeswaran

Yes

Regards,
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
kaman
Staff
Staff

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-confi...


Regards,
Aman

mulbzh
New Contributor II

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
New Contributor II

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

srajeswaran

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?

Regards,
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors