How to auto-delete files in a folder hierarchy to keep total size <12Gb
October 8, 2017 6:59 PM Subscribe
I have several security cameras which trigger on motion-detect and connect via FTP to my PC where all the video files are deposited into a folder hierarchy. This folder is monitored by pCloud (where I have 12Gb of space available) so anytime video files appear in that folder they are automatically synced to the cloud. Deleting files from the folder of course delete them from the cloud as well. The problem is the cloudspace limit of 12Gb. My cameras will deposit that amount of files within about 7-10 days. Is there any freeware monitoring software (for Windows), or some sort of script I can use, that will constantly monitor this folder hierarchy and upon reaching or approaching 12Gb of total folder+subfolder size, will automatically delete the oldest file(s) in the hierarchy in order to keep the usage under that total limit so I don't eventually blow out my max space on cloud storage? Right now I'm just manually (completely) clearing them out by running a batch file.