Skip to content

utopeadia/TruenasAutomaticCleanupGarbage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

脚本

#!/bin/sh  

find /mnt/[MountPoint]/.recycle/* -atime +[Age] -exec rm -rf '{}' \;
find /mnt/[MountPoint]/.recycle/ -depth -type d -empty -exec rmdir {} \;
  • 填入以下内容,[MountPoint] 替换成你挂载点的名字,[Age] 替换成天数

About

TrueNAS 定时删除回收站

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published