exp:dfscleanup
Available before Exponential 6: the legacy kernel had it before Exponential 6; the 4.x reference had no page for it.
Summary
Check database and DFS files against each other (-S, -B) and delete nonexistent ones (-D)
Usage
./console exp:dfscleanup [options] php bin/php/dfscleanup.php [options]
Help
The output of ./console help exp:dfscleanup (the script run with --help), without the standard options:
Usage: bin/php/dfscleanup.php [OPTION]... Script for checking database and DFS file consistency Options: -S Check files on DFS share against files in the database -B Checks files in database against files on DFS share -D Delete nonexistent files --path=VALUE Path to limit checks to (e.g.: var/storage/content - Default: var/) --iteration-limit=VALUE Amount of items to remove in each iteration when performing a purge operation. Default is all in one iteration.
Options
| Option | Value | Description |
|---|---|---|
| -S | - | Check files on DFS share against files in the database |
| -B | - | Checks files in database against files on DFS share |
| -D | - | Delete nonexistent files |
| --path | required | Path to limit checks to (e.g.: var/storage/content - Default: var/) |
| --iteration-limit | required | Amount of items to remove in each iteration when performing a purge operation. Default is all in one iteration. |
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/dfscleanup.php, kernel/private/classes/commands/dfscleanup.php
See also
Generated example: exp:dfscleanup
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment