Delete old files as drive gets full.

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Delete old files as drive gets full. Fri Oct 04, 2019 11:26 pm • by thesillyrabbit
Setting up home security camera. I'm already using Hazel to sort motion clips onto a external usb drive by date.

Is there a way when the drive gets full (like less than 20 gigs) that I can setup Hazel to start deleting files by age? So it just keeps deleting the oldest files first.

Thanks
thesillyrabbit
 
Posts: 2
Joined: Wed Aug 17, 2016 1:56 am

Re: Delete old files as drive gets full. Sat Oct 05, 2019 5:27 am • by Dave61
Image
Dave61
 
Posts: 87
Joined: Tue Jul 10, 2012 4:56 pm

Re: Delete old files as drive gets full. Mon Oct 07, 2019 11:14 am • by Mr_Noodle
@dave61 Thanks for posting that rule. I'd add another condition to tell it when to stop as right now, it may end up deleting everything as there's always 1 least recent file.

@thesillyrabbit Not sure how well versed you are with scripting, but you'll probably have to use a script to determine disk usage. You can then have Hazel use that in a condition.
Mr_Noodle
Site Admin
 
Posts: 8107
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support