- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you make sure you add "config global" to the stitch.
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, i was just that. In config global, i have backup of all VDOM ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Suraj
- Have you found a solution? Then give your helper a "Kudos" and mark the solution.
