Hi!
I need your help to figure it out how to achieve this (this is the last big missing bit in my setup).
There's a script which downloads into a watch folder the meta (torrent) files. When the disk is getting full I want to delete the oldest ones based upon the space what the new ones need.
I set in rtorrent config, that when a meta (torrent) file is deleted, the corresponding data is deleted as well.
What I used so far was a cron job which run every 10 mins, checks the free space, deletes ONLY 1, the last metafile (torrent) if disk space reached a treshold.
It's not good in many ways, but a it was working so-so most of the time (whit slow download speed, and "small" data). But sometimes a 250GB (!) torrent has been downloaded (and not just 1 at the same time), and that is not working at all :)
So, what I need is some kind of scripting (maybe the help of rcontrol), or if it can be done inside rtorrent config it would be better (unfortunately I can't specify a method for low_diskspace event)
Thanks for helping!