exp:dfscleanup
Check database and DFS files against each other (-S, -B) and delete nonexistent ones (-D).
Script bin/php/dfscleanup.php, code in kernel/private/classes/commands/dfscleanup.php. Run it from the installation root, as the user the web server runs as:
./console exp:dfscleanup --help
php bin/php/dfscleanup.php --helpHelp text
Script for checking database and DFS file consistencyOptions
| Option | Value | Help |
|---|---|---|
-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. |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/dfscleanup.php, kernel/private/classes/commands/dfscleanup.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.