Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Automation -> CLI Script: Use date as Part of filename
Hello
we use automation/cli script to backup the configuration.
How can i use the date in the filename?
Is there a parameter like %%date%%?
So that a backup would look like:
execute backup full-config ftp /Folder/backup_%%date%%.cfg user pwd
thanks for any input.
Regards
Mario
MaZi
MaZi
Labels:
- Labels:
-
FortiGate
- « Previous
-
- 1
- 2
- Next »
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer below document to configure the automation stitch for configuration backup.
It won't work if you test the command by typing the command directly into the CLI.
This will generate a file name which is in the command line, however in order to achieve your requirement please configure the parameters in the cli of automation stitch then only the file will be having the date and time.

- « Previous
-
- 1
- 2
- Next »