![]() ![]() However, I've already spent more time on this than I ideally should have. #Treesize for linux codeTreesize.exe /OPTION SCANPATH In case an error occurs, it will be returned as Windows error code in the exit code of the process. One of the main changes in the new version is that resources with at least 15 of the locations size are displayed in bold. Using Scheduled TreeSize Tasks > Command Line Options Command Line Options Please note: These option are not available in the Personal Edition. Both versions offer the same functionality. #Treesize for linux portablePlus I haven't described how we might set this up as a cron job. TreeSize Free 4.3 TreeSize Free 4.3 is available as a portable version and a version that needs to be installed before it can be run. Efficient Disk Space Reporting Scan your volumes in seconds and see the size of all folders including all subfolders and break it down to file level. Please note that I haven't tested this at all so it may requires some more tweaking. Use TreeSize Free to keep an eye on your disk space. # return the disk space size (in MB) used by the filetreeĭu -cms | grep total | tr ']' '+' | cut -d+ -f1 RECYCLEBINS="/srv/storage/docs " # space separated list of recyclebin locations ![]() Then any system user can get a list of directory sizes within a directory by just running treesize from any directory. KEEP_SIZE=512 # default file tree size to keep in MB Just put this code into a file /bin/treesize and make it executable. KEEP_DAYS=61 # default time to keep in days + 1 ![]() So to put all this together, here is that basis of a script (perhaps save it as /usr/local/bin/recycle-cleanup?!): recycle directory is smaller than the desired size. Then recheck the file tree size and if it's still not the desired size, reduce the age filter by a day and clean again. recycle directory and if it's over a certain size, remove files older than X days. #Treesize for linux 64 BitNative 64 Bit support makes sure that available memory will never pose a. TreeSize is a powerful and flexible hard disk space manager for all Windows versions and client/server versions currently supported by Microsoft. That still doesn't meet your requirements re filesize, but using these bits, together with a function to get file tree size, we could create a (daily?) cron job to check the size of the. Hard disk space manager for Microsoft Windows 2000, XP, Vista, Windows 7 or Windows Server 20 (32 or 64-bit). There is also a tool called tmpreaper which will clean up files based on timestamp. However, this is Linux, so (pretty much) anything is possible if you really want it! :)ĭigging in a bit deeper, I note that it's possible to adjust the timestamps when moving to the recycle bin. So bottom line, I don't think that what you want is possible OOTB. If not, the config file is /etc/samaba/smb.conf and you can use the pre-installed 'nano' to edit it (it's a commandline text editor which is somewhat like Notepad). There are file size limits there, although I'm not sure if they're adjustable within Webmin. Looking at the Samba vfs_recycle man page I can't see any support for limiting the recycle bin size. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |