In 2019, i’m still staggered that an archive feature available in Cisco IOS isn’t available in Cisco ASA code.
That being said, it’s possible to craft some code to take the edge off Cisco ASA devices which may not normally receive frequent administrative attention.
Embedded Event Manager is your friend in this case. A generic use case for EEM can be found here.
In this case though, I want a backup that’s written to an SFTP server infrequently. I would prefer a weekly backup, but in the case of the EEM absolute timer parameters, the only choice is the hh:mm:ss format, so daily it is.
PBUKFW01(config)# event manager applet daily-backup-sftp01
PBUKFW01(config-applet)# event timer absolute time 23:50:00
PBUKFW01(config-applet)# action 0 cli command "copy /noconfirm running-config scp://username:email@example.com/PBUKFW01/PBUKFW01_Daily.cfg;int=inside"
PBUKFW01(config-applet)# output none
The file on the remote server will be overwritten each time by the process, but you’ll have a config file with the most recent running configuration off the ASA in the case that that ASA goes bad.
Hope this helps.