Hi there,
I had a script to auto empty the .recycle bin but it seems to have stopped working for some reason and its collecting a lot of garbage. I tried the commands from the script directly in the Command Shell. They don't throw any errors, but they don't empty the .recycle bin either.
Some of the files in .recycle were deleted 2yrs ago but I've specified a time of 7 days in the command.
I'm wondering if something has changed in a upgrade at some point???
I'm running Truenas 12.0 u4
The commands I'm trying to run are:
or
Any thoughts on what my issue could be?
I had a script to auto empty the .recycle bin but it seems to have stopped working for some reason and its collecting a lot of garbage. I tried the commands from the script directly in the Command Shell. They don't throw any errors, but they don't empty the .recycle bin either.
Some of the files in .recycle were deleted 2yrs ago but I've specified a time of 7 days in the command.
I'm wondering if something has changed in a upgrade at some point???
I'm running Truenas 12.0 u4
The commands I'm trying to run are:
Code:
find /mnt/Pool/myShare/.recycle/* -atime +7 -exec rm -rf '{}' \; find /mnt/Pool/myShare/.recycle/ -depth -type d -empty -exec rmdir {} \;
or
Code:
find /mnt/Pool/*/.recycle/* -atime +7 -delete; find /mnt/Pool/*/.recycle/ -depth -type d -empty -exec rmdir {} \;
Any thoughts on what my issue could be?