Old 03-28-2019, 05:50 AM   #1
Human being with feelings
Coachz's Avatar
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 7,343
Default Delete Reaper Backups Utility for Windows

I have come up with a command line exe that will keep X number of the most recent *.rpp-bak files in subdirectories and delete the rest.

The C# source code is here for anyone who wants to make suggestions or improve it.

IT IS POTENTIALLY DANGEROUS and I would like to see if anyone wants to test it. I have only tested it locally. If you run "Delete_Rpp_Bak 0" all *.rpp-bak files will be deleted. This code is designed to ONLY delete *.rpp-bak and NO OTHER FILETYPES.

Usage: Delete_Rpp_Bak 5
will keep the latest 5 *.rpp-bak files in every directory below it and delete the rest of the *.rpp-bak files.

Please proceed with extreme caution as deleting things can go wrong.

Download the zip file with Delete_Rpp_Bak.exe here

Also, if Reaper devs don't want this utility to be available I'm happy to kill it off. Thanks in advance.

I imagine you could keep this in your top level Reaper project dir and run a batch file on startup with "pathto\Delete_Rpp_Bak 20" or whatever number you want to keep and have a nice clean bunch of backups of your most recent work at all times.

Thanks guys and let me know if it's any use to you.
Coachz is offline   Reply With Quote
Old 09-17-2019, 05:05 PM   #2
Human being with feelings
X-Raym's Avatar
Join Date: Apr 2013
Location: France
Posts: 6,057

a utility could definitly be build in a cross platform script format like python though, it would be more portable

Another attempt: https://forum.cockos.com/showthread.php?t=180661
X-Raym is offline   Reply With Quote
Old 09-17-2019, 05:29 PM   #3
Human being with feelings
karbomusic's Avatar
Join Date: May 2009
Posts: 24,888

Needs... "About to delete ~n .rpp-bak files, continue? (y/n)". I didn't see much wrong otherwise. I suppose you could get fancy and a /silent switch to bypass the safety check via command line.
If it requires a null test to find it, it is by definition minuscule.
karbomusic is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.