View Single Post
Old 03-28-2019, 05:50 AM   #1
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
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.
https://pastebin.com/LUYwY4aK

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
https://drive.google.com/file/d/1FQP...ew?usp=sharing

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.
__________________
Track Freezing Scripts

Coachz Repo

Last edited by Coachz; 11-10-2020 at 11:27 AM.
Coachz is offline   Reply With Quote