This article provides information about the max-configurations-on-flash configuration option.
The current configuration is stored on the compact flash card in the juniper.conf.gz file, which is present in the /config directory, along with the last three committed configurations, which are juniper.conf.1.gz , juniper.conf.2.gz , and juniper.conf.3.gz . To specify how many previous versions of the committed configurations you want to store on the compact flash card, include the max-configurations-on-flash statement at the [edit system] hierarchy level:
[edit system] max-configurations-on-flash <number> ;