DUREP(1) | Disk Usage Report Generator | DUREP(1) |
durep - disk usage report generator
durep [OPTIONS]... [DIRECTORY]
durep creates disk usage reports with bar graphs, allowing one to easily deduce which directories are using the most space. Although durep can produce text output similar to du, its real power lies in the ability to store reports in a file, which can then be viewed as a web page with the supplied cgi script.
Options are grouped into three distinct sections.
These options are for controlling the text report output.
These options control load and save files.
These options control which directories and files should be included in the report.
Since version 0.9, durep no longer directly generates html files for its web reports. It now uses a cgi script that reads data from save-files. The script will handle multiple save-files, potentially from multiple hosts, so you can consolidate your reports into one place. Copying save-files from other hosts is left as an exercise for the reader.
It is necessary to collate the save-files before viewing them via the cgi script. This process creates the file "durep.cds" which contains meta-data about all of the save-files. From this a summary page is shown where you can choose which report you wish to view. The collation must be done any time a save-file is added or overwritten.
The cgi-script has some configurable variables at the top. These tell the script where to look for the css file and the graphic used for the bar graphs. There are also options to set whether the modification date, and/or the options used to create the save-file should be shown. These are both set to 1 by default.
As always, you should take care when installing the cgi script. I've done my best, but I make no guarantees about its security. It would probably be unwise to allow this script to be accessed from the Internet at large.
This would print the directory tree starting from the current directory to depth 2.
This might be useful for keeping a check on the mail directory. The "-f" switch tells durep to just scan files and not descend into directories.
This more complicated version does the following. It scans the root file system only, collapses the contents of any paths beginning /etc or /usr/share and skips the contents of the /var directory. It saves the output of this report into the file /var/lib/durep/root.ds. No text report is produced.
This reads the save-file /var/lib/durep/root.ds and produces a text report from it, hiding any files below 1 megabyte.
This collates any save-files in /var/lib/durep.
du(1), perl(1)
Damian Kramer <psiren@hibernaculum.net>
2021-01-03 | durep version 0.9 |