KCT NG naming convention
This topic applies to KCT NG 2026.2 and later. If you are on KCT 3.12.7 or earlier, see legacy topic.
Troubleshoot 'Number of device specific dated files to retain' option not working:
If you have set Number of device specific dated files to retain but the activity is deleting all files, it is likely due to using a custom file naming convention, rather than using the default KCT NG file naming convention.
In this backup activity example, KCT NG uses the default naming convention:
Config.Current.Running.Cisco_Router_2.txt
However, if you are using a convention which does not place a period mark (.) at the end of the device name, such as Cisco_Router_2., KCT NG may not group the files relating to the device correctly. As demonstrated below, if you are using a file naming convention such as:
Cisco_Router_2-backup.txt
KCT NG is unable to group the Cisco_Router_2 files together correctly. Therefore all files are deleted.
The solution is to change the dash ( - ) in your custom naming convention to a period (.). For example:
Cisco_Router_2-backup.txt
becomes
Cisco_Router_2.backup.txt