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
Old 09-17-2019, 05:05 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Intersting,
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
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

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.
__________________
Music is what feelings sound like.
karbomusic is offline   Reply With Quote
Old 11-10-2020, 03:07 AM   #4
HighVoltage
Human being with feelings
 
HighVoltage's Avatar
 
Join Date: Jan 2007
Posts: 496
Default

Hi, can you please reupload the file? Thanks
HighVoltage is offline   Reply With Quote
Old 11-10-2020, 11:28 AM   #5
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,769
Default

Quote:
Originally Posted by HighVoltage View Post
Hi, can you please reupload the file? Thanks
Done.
https://drive.google.com/file/d/1FQP...ew?usp=sharing
Coachz is offline   Reply With Quote
Reply

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 03:32 AM.


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