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:expcontentjob

Run, list, resume and cancel content jobs: large subtree removes and copies in batches.

Download as PDF

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

On this page

exp:expcontentjob

Run, list, resume and cancel content jobs: large subtree removes and copies in batches.

Script bin/php/expcontentjob.php, code in kernel/private/classes/commands/expcontentjob.php. Run it from the installation root, as the user the web server runs as:

./console exp:expcontentjob --help
php bin/php/expcontentjob.php --help

Help text

Content jobs: large subtree removes and copies, run in batches in the background.

  list [--all] [--resume]              the jobs (heartbeat age, stalled); --resume: resume every stalled or failed one
  show <id> [--json]                   one job and the end of its log
  run <id>                             run a job in the foreground
  resume <id> [--background]           resume a failed job or one whose worker died
  cancel <id>                          stop a job after its current batch
  remove <node id>[,...] [--trash|--delete] [--background]
  copy <src node> <dest parent> [--all-versions] [--keep-creator] [--keep-time] [--background]
  move <node> <new parent> | hide <node> | reveal <node> | section <node> <section id> [--scope=...] | state <node> <state id>
  addlocation <target node> <node>[,...] | removelocation <node>[,...]        (all: [--background])

Options

OptionValueHelp
--alllist: every job, not only the active and failed ones
--resumelist: resume every stalled or failed job, each with a worker in the background
--jsonshow: the job as JSON
--backgroundremove, copy, resume: start a detached worker and return
--trashremove: move the objects to the trash (the default of content.ini [RemoveSettings])
--deleteremove: delete the objects permanently
--all-versionscopy: copy all versions of each object, not only the current one
--keep-creatorcopy: keep the owner and creator of the copied objects
--keep-timecopy: keep the creation and modification times
--scoperequiredsection: which objects below the node get the section: subtree (the default, all of them), inherited (those that have the section of the node's object, not branches in another section) or object (none)

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