Skip to the content
Documentation

exp:updateniceurls

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

Import old URL aliases and update the URL aliases of all nodes (--update-nodes)

Usage

./console exp:updateniceurls [options]
php bin/php/updateniceurls.php [options]

Help

The output of ./console help exp:updateniceurls (the script run with --help), without the standard options:

Usage: bin/php/updateniceurls.php [OPTION]...
Exponential url-alias importer and updater.

Will import urls from the older (3.9) system into the new, controlled by the --import* options.
Will also update the url-alias entries from the content object nodes in the system, controlled by the --update-nodes option.
The default behaviour is to update urls for content object nodes only

updateniceurls.php


Options:
  --db-host=VALUE        Database host
  --db-user=VALUE        Database user
  --db-password=VALUE    Database password
  --db-database=VALUE    Database name
  --db-type=VALUE        Database driver, alias for --db-driver
  --db-driver=VALUE      Database driver
  --sql                  Display sql queries
  --no-import            Disables all import routines. To enable specific ones use the --import-* options.
  --import               Enables all import routines.
  --import-nodes         Enables importing of urls from the old node data.
  --import-aliases       Enables importing of old urls (system and customized).
  --import-redirections  Enables importing of urls which redirects to the correct url (ie. history).
  --import-wildcards     Enables importing of urls which redirects to the correct url using wildcards (ie. history).
  --no-update-nodes      Disable updating of the urls of content object nodes.
  --update-nodes         Enable updating of the urls of content object nodes.
  --verify-data          Verify the database after new data has been inserted, this should only be used for debugging.
  --interactive          Enables interactive mode for --verify-data,
                           this will halt execution when database errors occurs and allow for manual inspection.
  --backup-tables=VALUE  Performs a backup of the ezurlalias and ezurlalias_ml tables after each stage is done (import or update),
                           the backup tables will use the original name but with the suffix supplied to this option.
                           Note: Use only for debugging and only on MySQL.
  --column-width=VALUE   The approximate width of the output block, defaults to 72.
  --fetch-limit=VALUE    The number of items to fetch in one go, increasing it may reduce
                           total time but will also increase memory usage, defaults to 200.

Options

Option Value Description
--db-host required Database host
--db-user required Database user
--db-password required Database password
--db-database required Database name
--db-type required Database driver, alias for --db-driver
--db-driver required Database driver
--sql - Display sql queries
--no-import - Disables all import routines. To enable specific ones use the --import-* options.
--import - Enables all import routines.
--import-nodes - Enables importing of urls from the old node data.
--import-aliases - Enables importing of old urls (system and customized).
--import-redirections - Enables importing of urls which redirects to the correct url (ie. history).
--import-wildcards - Enables importing of urls which redirects to the correct url using wildcards (ie. history).
--no-update-nodes - Disable updating of the urls of content object nodes.
--update-nodes - Enable updating of the urls of content object nodes.
--verify-data - Verify the database after new data has been inserted, this should only be used for debugging.
--interactive - Enables interactive mode for --verify-data, this will halt execution when database errors occurs and allow for manual inspection.
--backup-tables required Performs a backup of the ezurlalias and ezurlalias_ml tables after each stage is done (import or update), the backup tables will use the original name but with the suffix supplied to this option. Note: Use only for debugging and only on MySQL.
--column-width required The approximate width of the output block, defaults to 72.
--fetch-limit required The number of items to fetch in one go, increasing it may reduce total time but will also increase memory usage, defaults to 200.

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/updateniceurls.php, kernel/private/classes/commands/updateniceurls.php

See also

Generated example: exp:updateniceurls

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.