Skip to content

ShironB/Folder-Size-Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Monitoring the folder size and making sure it doesn't pass the pre-defined size. In case the folder is bigger then the defined size the script deletes the oldest files until reaching the threshold size.

Execution method:

./monitor_folder_size.sh <PATH_TO_FOLDER> <MAX_FOLDER_SIZE_BY_GIGABYTES>

Example:

./monitor_folder_size.sh /logs/logs/Archive 20

About

Keeping folder size as pre-defined

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages