Subdirectory size limit/retention policy

Questions pertaining to Power settings, Auto Block, Permissions, User Quotas and Email alerts may be posted here.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
Michele31415
I'm New!
I'm New!
Posts: 9
Joined: Sun Jul 23, 2017 6:22 pm

Subdirectory size limit/retention policy

Unread post by Michele31415 » Sun Mar 11, 2018 9:43 pm

I have a DS-211J running the latest firmware. Is there any way to specify a maximum size limit of a subdirectory and a retention policy like "Delete the oldest files first to make more room if the directory is full"? Thanks.

Michele31415
I'm New!
I'm New!
Posts: 9
Joined: Sun Jul 23, 2017 6:22 pm

Re: Subdirectory size limit/retention policy

Unread post by Michele31415 » Tue Mar 13, 2018 5:21 pm

Someone? Anyone? I've searched everywhere for an answer to this without success and automatically deleting files is not something I feel like just experimenting with.

telos
Skilled
Skilled
Posts: 621
Joined: Mon Sep 23, 2013 6:12 pm

Re: Subdirectory size limit/retention policy

Unread post by telos » Tue Mar 13, 2018 9:15 pm

You'll need to write a simple script. Set it up to run here ...
Control Panel -> Task Scheduler -> Create -> User-defined script

On the General tab, let it run as "admin". Set the schedule as you desire.

Post Reply

Return to “System Management”