Resource icon

Delete Pics by age or folder size 2022-02-11

No permission to download

Currently reading
Delete Pics by age or folder size

1,317
262
NAS
DS 718+, 2x-DS 720+
Router
  1. RT2600ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
Jan Janowski submitted a new resource:

Script file - Script file for deleting Pics by age or folder size

I can't take credit for this....
I've been using multiple copies of this script file, running as timed script file for years... running at 3-4AM to delete old pictures by age, and by overall directory size.

You edit the script file:
1. To add the location of the folder the pictures are in: In this case /CAMERAS/DRIVEWAY/
2. You specify The MAXSIZE the folder should be in MB: In this case 50000
3. You specify The MAXDAYS to adjust the desired retention date: In this case 45 (days)

and then...

Read more about this resource...
 
Last edited:
Today Examined the contents of each of 13 camera folders that the 13 timed script files are applied to....
Last time I did this was 6 months or more ago.... 2 of 13 folders needed maximum size adjusted... due to changes in activity in front of cameras. My 'target' is keeping images 45 days before deletion, and each folder a custom maximum size, based upon that camera's activity.... Both settings are adjustable, as is the location of the folder the script file is applied to.
Absolutely flawless operation... These first added as timed script files in 2019-2020
PS: These folders are then Shared folder Sync'd to other NAS's, distributing the truncated directories to other locations, as backup copies.... That action is also flawless in year's of operation...
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top