- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Backup command works in CLI, but not when started as automation stitch
Hello
i try to setup automatic backup over automation.
I use the cli command:
execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password
Executed in cli, it works fine.
When i try to start the command as automation stitch, the backup is not uploaded to the ftp server.
What am i missing?
Regards
Mario
-> Debug output when testing automation stitch:
0: config global
0: config system auto-script
0: edit "autod.858"
0: set script "execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password"
0: end
0: end
-1: execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password
Solved! Go to Solution.
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example on how to use automation stitches for scheduled backups can be found at https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-send-automated-backups-of-the-confi... .
Also don't forget to switch to global context if you have VDOMs enabled.
set script "
config global
execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password"
Boris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah - I think you have VDOMs enabled?
In that case, your automation stitch script needs to look like this:
config global
execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password
-> or 'config vdom/edit <vdom>/exe backup [...]'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example on how to use automation stitches for scheduled backups can be found at https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-send-automated-backups-of-the-confi... .
Also don't forget to switch to global context if you have VDOMs enabled.
set script "
config global
execute backup full-config ftp /Netdevice-BCK/BU-FWZ/BU-FWZ-test.cfg server user password"
Boris
