Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:ezsubtreecopy

Copy a content subtree to a new location (--src-node-id, --dst-node-id; dry run unless --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/ezsubtreecopy.md

On this page

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 --help

Options

OptionValueHelp
--applyCopy the subtree (the default is a dry run that lists it and copies nothing)
--dry-runThe default: list the nodes that would be copied, change nothing
--src-node-idrequiredSource subtree parent node ID.
--dst-node-idrequiredDestination node ID.
--all-versionsCopy all versions for each contentobject being copied.
--keep-creatorDo not change the creator (user) for the copied content objects.
--keep-timeDo 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 ...).


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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x