ClearFoundation Tracker - ClearOS | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0018581 | ClearOS | app-flexshare - Flexshares | public | 2018-01-12 10:35 | 2020-04-03 05:41 |
Reporter | NickH | ||||
Assigned To | NickH | ||||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | suspended | ||
Platform | OS | OS Version | |||
Product Version | 7.4.0 | ||||
Target Version | Fixed in Version | ||||
Summary | 0018581: Add menu option to clear .trash items older than x days from flexshares | ||||
Description | Currently, if you enable the recycle bin on Flexshares, deleted files build indefinitely in the .trash folders, eventually possibly filling the file system. I think that there should be a user-configurable parameter for the number of days of old files to keep. This dropdown or input box could perhaps only be exposed if the recycle bin is enabled. A cron job could then be set up with something like: tmpwatch 30d --all -m -q /var/flexshare/shares/*/.trash/ in it. Obviously change the 30d to however many days are chosen in the UI. The cron job may also have to take care of the custom flexshare location. Note the more commonly touted solution is to use the following lines: find /shares/*/.trash/ -type f -mtime +30 -exec rm -f {} \; find /shares/*/.trash/ -type d -empty -exec rmdir {} \; > /dev/null 2>&1 but this can take a few days to delete a folder structure. Not a big issue but tmpwatch is neater. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2018-01-12 10:35 | NickH | New Issue | |||
2018-01-13 03:28 | NickH | Note Added: 0006961 | |||
2018-02-21 09:26 | user2 | Status | new => acknowledged | ||
2020-04-03 05:41 | NickH | Note Added: 0013851 | |||
2020-04-03 05:41 | NickH | Status | acknowledged => closed | ||
2020-04-03 05:41 | NickH | Assigned To | => NickH | ||
2020-04-03 05:41 | NickH | Resolution | open => suspended |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|