I have several cameras that upload data to a Samba server running under Debian. The video files are initially uploaded to a larger external drive, but I would also like to maintain a copy of the latest files on a smaller internal drive. I have installed lsyncd and it works until it runs out of space on the smaller drive. I am looking for a solution that would automatically delete the oldest files in order to make space for the newest files.
Is there an existing piece of software that can do this, or can lsycnd be configured to handle this situation? The OS is Debian 8.5.