exp:cleanupversions
Remove archived content versions beyond the VersionManagement limits (dry run unless --apply; -n: do not wait).
Script bin/php/cleanupversions.php, code in kernel/private/classes/commands/cleanupversions.php. Run it from the installation root, as the user the web server runs as:
./console exp:cleanupversions --help
php bin/php/cleanupversions.php --helpHelp text
Remove archived content object versions according to [VersionManagement]/DefaultVersionHistoryLimit and [VersionManagement]/VersionHistoryClass settings
Without --apply nothing is removed: the script lists per object how many archived versions it would
remove. --dry-run means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
Example: ./bin/php/cleanupversions.php
./bin/php/cleanupversions.php --apply -nOptions
| Option | Value | Help |
|---|---|---|
--apply | Remove the versions (the default is a dry run that lists them and removes nothing) | |
--dry-run | The default: list how many archived versions of each object would be removed | |
-n | With --apply: do not wait 10 seconds |
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/cleanupversions.php, kernel/private/classes/commands/cleanupversions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.