Description

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.

Solution

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:

  • max-configurations-on-flash
    Specifies the number of backup configurations stored in the configuration partition (/config directory).
  • max-configuration-rollbacks
    Specifies the total number of rollback configurations maintained on the device.

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.

Extended Solution

Sample configuration:

#set system max-configurations-on-flash 10

#set system max-configuration-rollbacks 20

Result:

  • Stores up to 10 configuration files in the /config directory
  • Maintains a total of 20 rollback configurations
  • The remaining 10 rollback configurations beyond the /config limit are stored in /var/db/config

Modification History

2026-05-25 : Article Created