|
|
|
07-22-2021, 11:11 PM
|
#81
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
So, it is similar to this:
Quote:
Originally Posted by Phazma
I would actually prefer that over the workaround of a custom save action as proposed by amagalma.
|
This can be done too, and be light-weight but I personally do not like having too many deferred scripts running...
|
|
|
07-22-2021, 11:14 PM
|
#82
|
Human being with feelings
Join Date: Jun 2019
Posts: 2,875
|
Quote:
Originally Posted by X-Raym
@Phazma
It is not a defered script cause this would be less efficient (it would run 30 time per second and check files which is "slow"). It is just a script action to put on CTRL+S shortcut, which wrapes the usual save action.
|
Ah ok, I understand, so pretty similar to amagalma in that regard. I figured it might be faster than delete a lot of backups at once (I have them each minute and sometimes work for an hour without saving).
|
|
|
07-22-2021, 11:17 PM
|
#83
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
Quote:
Originally Posted by Phazma
...might be faster than delete a lot of backups at once (I have them each minute and sometimes work for an hour without saving).
|
Deleting a few hundreds backups does not take more than a few milliseconds on an SSD...
|
|
|
07-22-2021, 11:24 PM
|
#84
|
Human being with feelings
Join Date: Jun 2019
Posts: 2,875
|
Quote:
Originally Posted by amagalma
Deleting a few hundreds backups does not take more than a few milliseconds on an SSD...
|
Ok, I indeed have them on SSD. Just will keep workig with your action hoping there won’t be unexpected issues
|
|
|
07-22-2021, 11:33 PM
|
#85
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
The name matching in the script is very strict, so do not worry at all about loosing something that you would like to keep
|
|
|
07-23-2021, 12:23 AM
|
#86
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,900
|
The main diff with amagalma version is that amagalma version can be run without saving, but can be wrapped in custom action.
|
|
|
07-23-2021, 03:45 AM
|
#87
|
Human being with feelings
Join Date: Jun 2019
Posts: 2,875
|
Ok I think for now I will keep using amagalma's version then, since I have already set it up.
Yet I hope there will be a native implementation soon as I'd like to have it work in a way that Reaper currently doesn't allow and a script probably can't work around Reaper's limitations.
|
|
|
07-23-2021, 05:00 AM
|
#88
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,900
|
Well, I released my script!
https://forum.cockos.com/showpost.ph...2&postcount=83
See you in this thread if you need to talk about it :P
I leave this one for amagalma approach
Cheers !
|
|
|
07-23-2021, 05:09 AM
|
#89
|
Human being with feelings
Join Date: Jun 2019
Posts: 2,875
|
Thanks for sharing it X-Raym. I think many people who missed out on this thread will be happy to discover a solution in the FR thread. I will compare both scripts and see which one I find more useful.
Also good idea to have both threads dedicated to one of the approaches so there is no confusion with mixed up information.
I think we all agree that despite having these scripts a native implementation is still an important thing that should absolutely happen but I want to thank you both for the effort and for coming up with a useful solution that will work until the devs decide to address this!
|
|
|
07-23-2021, 07:24 AM
|
#90
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
After running Script: amagalma_Keep x number of most recent timestamped backups of current project file (deletes older ones - no undo!).lua
with
local files_to_keep = 5
|
|
|
07-23-2021, 07:43 AM
|
#91
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
|
|
|
07-23-2021, 07:52 AM
|
#92
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
hmm, it seems the script resets on updates. That's troubling because when I sync packages I'll have to really focus to make sure when I get a new update I'll have to go edit it back to false. yes ?
|
|
|
07-23-2021, 10:18 AM
|
#93
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
The current is the final version, so you don't have to worry any more
|
|
|
07-24-2021, 12:56 PM
|
#94
|
Human being with feelings
Join Date: Jul 2020
Posts: 725
|
Quote:
Originally Posted by amagalma
To whom may find it useful:
Keep x number of most recent timestamped backups of current project file (deletes older ones - no undo!)
Scans the current project directory (and all its sub-directories) for backups (.rpp-bak) of the current project. Keeps the set number of backups and deletes all older ones. Action cannot be undone.
- Number of backups to keep is set inside the script (default=5)
- Keeps one backup per different date no matter what
- Works with timestamped backups only
- Can be combined with Save action (40026) into a custom action, so that it tides things up each time you save.**
- Requires JS_ReaScriptAPI
in ReaPack
**
|
Love the idea of this script, but it doesn't work for me. I think it has to do with the fact that I keep all of my auto-backups in a separate folder on a external drive. Is there some lines I can change to make it work even though the backups aren't saved to the project folder?
|
|
|
07-24-2021, 01:46 PM
|
#95
|
Human being with feelings
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,073
|
Sounds promising. How does this work exacty?
|
|
|
07-24-2021, 01:58 PM
|
#96
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
Delete all your backups and keeps X number of your most recent backups as set in the script file
|
|
|
07-25-2021, 07:25 AM
|
#97
|
Human being with feelings
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,073
|
Quote:
Originally Posted by Coachz
Delete all your backups and keeps X number of your most recent backups as set in the script file
|
Right, but what triggers it? How does it look for backups, and how does it decide which are most recent ones? it just periodically goes into your current project folder and deletes the backups in the backup folder? Or it searches the backup folder location for filenames of current project and periodically deletes the oldest backups? Does it do this every time a backup is made? Or how does it work exactly, if you know what I mean?
|
|
|
07-25-2021, 07:31 AM
|
#98
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
Quote:
Originally Posted by Sound asleep
Right, but what triggers it? How does it look for backups, and how does it decide which are most recent ones? it just periodically goes into your current project folder and deletes the backups in the backup folder? Or it searches the backup folder location for filenames of current project and periodically deletes the oldest backups? Does it do this every time a backup is made? Or how does it work exactly, if you know what I mean?
|
It's a script that you run that does two things, it saves your current project and deletes the X number of backups keeping the most recent ones. You can run the script from a toolbar button or a shortcut key combination such as control s which is used to save the project. It's up to you how often you run it. You could also put it in a project startup script
|
|
|
07-25-2021, 08:20 AM
|
#99
|
Human being with feelings
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,073
|
Quote:
Originally Posted by Coachz
It's a script that you run that does two things, it saves your current project and deletes the X number of backups keeping the most recent ones. You can run the script from a toolbar button or a shortcut key combination such as control s which is used to save the project. It's up to you how often you run it. You could also put it in a project startup script
|
Ok, cool. Ctrl+S is a good idea. So it cleans up all backups in the backups folder? Or just the ones that are the same filename as the current project you're working on, do you know?
I often manually save incremental projects.
How do you set how many most recent ones it keeps?
|
|
|
07-25-2021, 08:47 AM
|
#100
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
I only have backups from Prefs in my folder so that's what I see being deleted. Script settings are:
limit = 5
console = false
do_automatic_backup_dir = true
|
|
|
07-25-2021, 01:38 PM
|
#101
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
I have removed my script and replaced it with a new script pack that offers all features one may wish.
Check it here
|
|
|
07-25-2021, 01:41 PM
|
#102
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,793
|
Quote:
Originally Posted by amagalma
I have removed my script and replaced it with a new script pack that offers all features one may wish.
Check it here
|
Final version The Sequel !
|
|
|
07-25-2021, 01:52 PM
|
#103
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,458
|
:P
That was the final version of that script.. Now, there is a script pack.. Just check the link for the features.. It has everything, automatic limiting, settings script etc...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:19 AM.
|