exp:ezsubtreecopy
Copy a content subtree to a new location (--src-node-id, --dst-node-id; dry run unless --apply).
Script bin/php/ezsubtreecopy.php, code in kernel/private/classes/commands/ezsubtreecopy.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezsubtreecopy --help
php bin/php/ezsubtreecopy.php --helpOptions
| Option | Value | Help |
|---|---|---|
--apply | Copy the subtree (the default is a dry run that lists it and copies nothing) | |
--dry-run | The default: list the nodes that would be copied, change nothing | |
--src-node-id | required | Source subtree parent node ID. |
--dst-node-id | required | Destination node ID. |
--all-versions | Copy all versions for each contentobject being copied. | |
--keep-creator | Do not change the creator (user) for the copied content objects. | |
--keep-time | Do not change the creation and modification time of the copied content objects. |
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/ezsubtreecopy.php, kernel/private/classes/commands/ezsubtreecopy.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.