This article explains how to increase the number of saved configuration files (rollback configurations) on SRX Series devices, allowing administrators to retain more historical configurations on the system disk.
On SRX Series devices, the factory default retains 1 active configuration and up to 5 rollback configurations.
This means a total of 6 configuration files (1 active configuration + 5 rollback versions) are stored by default.
Increasing the number of saved configurations provides a deeper rollback history; however, it also consumes additional disk space and may increase commit times.
To modify the default limits, use the following CLI commands:
root@host# set system max-configurations-on-flash
root@host# set system max-configuration-rollbacks
Definitions:
The maximum supported number of configuration backups is 50. By default, the active configuration and the first three rollback files are stored in the /config directory. Additional rollback files (rollback 4 through rollback 49) are stored in /var/db/config.
Sample configuration:
#set system max-configurations-on-flash 10
#set system max-configuration-rollbacks 20
Result: