Hi dimkatsar,
You could use the following event-options script:
- Generate an event every week
set event-options generate-event EVENT_NAME time-interval [SECONDS]
- Create event-policy for the above event to upload /config/juniper.conf.gz to ftp
set event-options policy POLICY_NAME events EVENT_NAME
set event-options policy POLICY_NAME then upload filename /config/juniper.conf.gz destination DESTINATION_NAME
- Specify the FTP/SCP server where you want to copy the file.
set event-options destinations DESTINATION_NAME archive-sites "ftp://USER@SERVER_ADDRESS/config" password PASSWORD
It was shared over the following post for a weekly configuration backup:
https://forums.juniper.net/t5/SRX-Services-Gateway/Weekly-Schedule-configuration-backup-auto/m-p/316188#M47905
Because the time-interval value has to be specified in seconds, they used 604800 seconds which is equivalent to 7 days. I know you are looking for this to happen every 6 months, however the maximun value you can configure are 2,592,000 seconds which are 30 days:
https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/time-interval-edit-event-options.html
This way if you have to try a workaround on the server side at least you will only have 6 configuration files.
I checked for an option that will let you specify a date for the event to be generated but that option doesnt exist:
root@a13-17# set event-options generate-event TEST ?
Possible completions:
no-drift Avoid event generation delay propagating to next event
time-interval Frequency for generating the event (60..2592000 seconds)
time-of-day Time of day at which to generate event (hh:mm:ss)
I hope this helps.
Please mark this post as Solution if it applies.