Issue Bug Closed

#88874TYPO3-CMS/lowlevel Missleading behavior and documentation

Anonymous 08/01/19, 08:07 updated 09/29/20, 15:07

Description

Part from the docs:

Example script for checking your installation

#!/bin/sh
./typo3/sysext/core/bin/typo3 cleanup:orphanrecords -vv
./typo3/sysext/core/bin/typo3 cleanup:versions -vv
./typo3/sysext/core/bin/typo3 cleanup:multiplereferencedfiles -vv
./typo3/sysext/core/bin/typo3 cleanup:deletedrecords -v
./typo3/sysext/core/bin/typo3 cleanup:missingrelations -vv
./typo3/sysext/core/bin/typo3 cleanup:flexforms -vv
./typo3/sysext/core/bin/typo3 cleanup:missingfiles -vv
./typo3/sysext/core/bin/typo3 cleanup:lostfiles -vv

Example script for cleaning your installation

#!/bin/sh
./typo3/sysext/core/bin/typo3 cleanup:orphanrecords -vv
./typo3/sysext/core/bin/typo3 cleanup:versions -vv
./typo3/sysext/core/bin/typo3 cleanup:multiplereferencedfiles -vv  --update-refindex
./typo3/sysext/core/bin/typo3 cleanup:deletedrecords -v
./typo3/sysext/core/bin/typo3 cleanup:missingrelations -vv  --update-refindex
./typo3/sysext/core/bin/typo3 cleanup:flexforms -vv
./typo3/sysext/core/bin/typo3 cleanup:missingfiles --update-refindex
./typo3/sysext/core/bin/typo3 cleanup:lostfiles -vv  --update-refindex

These two are identical. And so is the script part under “Nightly reports of problems in the system”.

  • Nightly reports of problems in the system
    - add the “—dry-run” parameter to all calls
    - do something with the output. e,g, pipe it into a log-file (otherwise the whole block is senseless)
  • Example script for checking your installation
    - add the “—dry-run” parameter to all calls
  • Example script for cleaning your installation
    - the command “./typo3/sysext/core/bin/typo3 cleanup:versions -vv” does no action.
    V8 we can add all the action paramter variants there – but honestly I find the behavior missleading, because the default is a dry-run. I changed my code locally to execute all actions by default.
    v9 the command is gone… should be removed from docs.

Reviews 2