based on the findings with the log in case of activation on server event, i found a workaround to add the date to the backupfile name.
but for it to work there can't be any other auto-script that needs to be triggered manualy.
first you need to make an auto-script that does something, doesn't matter what. (I just have it execute date) it is importend that the start is manual. The config for it would look something like this:
config system auto-script
set interval 1
set repeat 1
set start manual
set script "execute date"
after that you make an automation that triggers on schedule (this schedule decides when and how regulary your backup triggers) that starts the auto-script that you just created. the script would be "execute auto-script start <name of your auto-script>"
then set your backup automation to trigger on system event: auto-script start. from that you can use %%log.date%% to get the date for the filename.
the main problem with this method is that you can't have any other auto-scripts that triggers the event auto-script start. note: the event only appers if the script is started with execute auto-script start, meaning if you have a auto-script that is on repeat 0 = infinite it does not interfere with this setup. if you want to make a new auto-script after you set this up, you should disable the backup automation befor starting it. otherwise you will trigger a backup.
i have not found a way to include the Hostname yet.
let's see if someone can find the from forti intended way. I would love to know how they thought to do this as this is a workaround that can trigger for reasons other then the intended. if the schedule trigger would produce a log with date and time all of this wouldn't be necessary.
post edited by anteopta - 2020/10/07 05:05:05