# Configuring Minimum and Maximum Archive Storage

Navigation: Working with Nx Witness > Device Management (Cameras, Encoders and I/O Modules) > Setting Up Cameras and Devices > # Configuring Minimum and Maximum Archive Storage |

Nx Witness provides the ability to set a maximum and minimum storage duration for the archive of any given camera, measured in the number of days from the current date going backwards in time.

Before you use a Fixed Archive Length setting, it is important to understand the impact it will have. The default Auto setting means that archived footage for a given camera is treated according to the standard algorithm - the oldest data is deleted first. No controls are placed on when or which archived footage is deleted.

The Min. Days and Max. Days fields assign priority to a given camera - high priority for Min. Days, low priority for Max. Days. If more than one camera is assigned high or low priority, storage results may not be predictable. Typically the Min. Days setting is used for environments with limited storage capacity and a few high-importance cameras, or when a regulation requires that certain footage be stored for a minimum number of days. Max. Days is typically used for environments where storage is limited and there is no need to store records beyond a certain age from certain cameras.

Min. Days

Min. Days sets a minimum archive length, in number of days from the current date, for which Nx Witness gives highest priority to retention of records from a given camera over retention of records from any camera that has the default (Auto) archive setting.

For example, a Min. Days value of 120 for a given camera means Nx Witness will attempt to preserve the past 120 days of records from that camera.

IMPORTANT: Be careful when setting a minimum days value. I f more than one camera is assigned a Min. Days value, those cameras will have the same priority level, in which case storage results cannot be entirely guaranteed for any of them. If there is insufficient storage space, in order to retain footage as specified with Min. Days, Nx Witness will first delete records from cameras that do not have a minimum archive length set, and then will stop recording incoming signals from low and average priority cameras. I f storage space is at capacity, no other camera streams will be recorded.

Max. Days

Max. Days sets an archive duration after which records will not be saved for a given camera.

To configure storage duration

1.Go to the camera's context menu from the Resource Tree or layout and open Camera Settings -> Recording tab.

2.In the Fixed Archive Length section, uncheck the Auto checkbox.

3.Enter the number of days you want to preserve archive in Min. Days.

4.Enter the number of days after which archive will be automatically deleted from archive in Max. Days.

5.Click Apply to accept, OK to save and close the dialog, or Cancel to discard changes.