Move selected Confluence pages to another parent
You want to move selected Confluence pages under another parent — for example after listing stale pages or matching titles — without a migration project.
Shell for Confluence Cloud 3.11.0 can do that for up to 100 pages per run, in the same space or into another space (a cross-space move needs -y). Find pages by name or last update, preview the move, then change their parent. It is not a find-and-replace tool.
Open the Cloud console, then cd into the space you care about.
Watch on YouTube: youtu.be/fVvS6cs3VMM
Demo (same-space copy)
Section titled “Demo (same-space copy)”Watch on YouTube: youtu.be/KcRQNH1UTg4
1. Find the pages (name or last update)
Section titled “1. Find the pages (name or last update)”$ cd YourSpace$ find . -name '*2023*'$ find ./Projects -mtime +365 -prune$ find ./Projects -mtime +365 -prune | head 20find -name matches titles. find -mtime filters by last update (content version when), not created date. Prefer -prune before a later move so you keep top-most matches and do not flatten parents beside children.
2. Preview, then move to another parent (max 100)
Section titled “2. Preview, then move to another parent (max 100)”$ mkdir ./Archive$ find . -name '*2023*' | mv -n ./Archive$ find ./Projects -mtime +365 -prune | head 100 | mv -n ./Archive$ find ./Projects -mtime +365 -prune | head 100 | mv ./Archive$ mv pageA pageB pageC ./Archivemv takes named paths, globs, or paths piped from find. An existing destination becomes the new parent. Preview with -n / --dry-run, then drop it when the preview looks right. At most 100 sources per run — split larger sets and run again. When DEST is in another space, add -y / --yes; descendants move with the page.
What this page is not
Section titled “What this page is not”- Cross-space moves need
-y. Nothing is written until you confirm with-y/--yes, and descendants move with the page. - Labels are a separate step. To tag pages instead of moving them, see Label stale pages for review (
find … | label add NAME -y). - Not find-and-replace. It does not rewrite page body text or titles in place (rename is a separate
mvof one page).
Related
Section titled “Related”- Reorganize pages — rename, copy, and moves
- Find pages not updated recently —
find -mtimethen optionalmv - Space hygiene ops — tree → find → CSV → move
- Archive stale pages — native Confluence archive instead of a move (Standard+)
- Shell for Confluence on Marketplace