NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SuperNASman
Nov 30, 2016Aspirant
Using share quotas to prune old files
Hello, I wanted to know if there is a way to use a share quota to delete old files. For instance, is it possible to set a 1 TB quota on a share, and have the NAS start deleting files, starting wi...
- Nov 30, 2016
Hey SuperNASman,
There's no such built in feature but I'd like to point you in the direction of an old post I made in a thread requesting something similar.
First of all please note that incorrect SSH usage may result in rejected support (until you factory default).. The script below is not official and is used at your own risk.
https://community.netgear.com/t5/Using-your-ReadyNAS/cron-job-with-shell-script/m-p/971648#M91936
You could modify the script to include an if statement checking if used space > X then go ahead and delete files older than Y, but I'll leave that up to you.
Danthem
Nov 30, 2016NETGEAR Employee Retired
Hey SuperNASman,
There's no such built in feature but I'd like to point you in the direction of an old post I made in a thread requesting something similar.
First of all please note that incorrect SSH usage may result in rejected support (until you factory default).. The script below is not official and is used at your own risk.
https://community.netgear.com/t5/Using-your-ReadyNAS/cron-job-with-shell-script/m-p/971648#M91936
You could modify the script to include an if statement checking if used space > X then go ahead and delete files older than Y, but I'll leave that up to you.
SuperNASman
Nov 30, 2016Aspirant
Very helpful. Thanks!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!