I have a IP cam which save its recordings in a specific directory named Camera1 in my Ubuntu Server 12.04.
I would like to limit the size of this folder to 5 gigs, by deleting -say once a day- the oldest files.
I first checked the quota program but it doesn't seem to allow the creation of new files and deleting of the old ones.
So I think the best workaround would be to run a bash script ? But I have no idea how to write it...
Thank you guys !