Option to leave "n" number of files undeleted?

My office suite (StarOffice, not Microsoft's Office) has its own Backup directory, that more-or-less continuously makes backups of whatever is being worked on. The number of files here tends to continue growing, pending a manual delete-operation.

I always used to sort by date and keep the most recent twenty-or-thirty files and delete the rest. I now have a nice batch file triggered by a Desktop shortcut that does the same, automatically. I thought I would switch to CCleaner, as it would be nicer to take care of everything with one program.

However, I don't see that the CCleaner analysis is finding the backup directory or its contents (Office52\user\backup). Am I mistaken? I then I noted I could set this up, as a custom directory for deletion.

However, the only option (that I can see) would be a complete wipe-out of all my backup files, and this I don't wan't in case I need a recent backup after using CCleaner! I definitely want to continue keeping the last 20-30 documents in case of an an emergency, as I am now doing.

Do I have to continue using my batch file, am I missing the option to let CCleaner do this, or will this feature have to be programmed into a future build?

I apologize if this has already been addressed (I suspect it may have been -- not wanting to totally wipe out one's backups does not seem all that unusual), but the Search function found nothing.

Thanks!

Hi,

can you please tell what's the file name of the Star Office backup files?

If they are named by date (like for instance the backup .reg files of CCleaner)

maybe something can be done adjusting the deletion routine.

:)

can you please tell what's the file name of the Star Office backup files?

If they are named by date (like for instance the backup .reg files of CCleaner)

maybe something can be done adjusting the deletion routine.

Thanks for the fast reply!

Sorry, but the filename is the same as the original, but with an extension of .bak.

No time or date is concatenated to the filename.

Are you thinking of comparing the file's date with the computer's real-time clock and deleting anything older than, say, a set number of hours, or days? I see the Windows 'temp' files are deleted by CCleaner when 48 hours old.

That may not be much of a problem for Windows 'temp' files but with backups for the various functions of an office suite, maybe a problem. For instance, if the 48 hour deletion-interval were to be used for an office computer, if no new files were generated over the weekend, then, wouldn't you be down to zero backups on Monday morning, when the cleaner runs? On Monday, everything in the directory would be 48 hours older than the real-time clock's time.

That's the reason for the way the thread's subject is worded.

At the moment, my batch file is set to preserve the most recent fifty files in the directory.

RonCam

No, sorry, i'm not that skilled :unsure:

I was just thinking about something like this:

Exclude1=PATH|D:\My Documents\Backup\|cc_200810*.reg

For instance, this should delete all the CCleaner .reg backups, keeping the current month ones only.