wegmeister/backup
最新稳定版本:1.0.0
Composer 安装命令:
composer require wegmeister/backup
包简介
README 文档
README
Neos CMS package that provides import & export functionality for content.
Installation
Go to your site package and add this package to your composer dependencies:
cd DistributionPackages/Vendor.Site
composer require wegmeister/backup --no-update
Then go back to your project root and run the actual update:
composer update
Commands
Export parts of the content tree
To export parts of the content tree, run the following command:
./flow content:export siteNodeName sourceNodeIdentifier filename
where
siteNodeNameis the name of the site node you want to export from,sourceNodeIdentifieris the node identifier of the node you want to use as starting point; this node and all its descendants will be exported,filenameis the name of the path and (xml) file to which the content will be exported (fe../Backup/export.xml). Next to the file, a folderResourceswith all the exported resources will be created. The folder will be created in the same directory as the file.
Further options:
--tidy: will create a tidy XML file (no line breaks, no indentation)--nodeTypeFilter=FILTER: will only export nodes matching the filter (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text").--workspace=WORKSPACE_NAME: can be used to export another workspace. If not set, theliveworkspace will be exported.
Import parts of the content tree
To import previously exported data, run the following command:
./flow content:import siteNodeName filename
where
siteNodeNameis the name of the site node you want to import to,filenameis the name of the path and (xml) file containing the previously exported data (fe../Backup/export.xml).
Special thanks
Special thanks to Sebastian Helzle, who shared this code via Slack. Maybe some more commands will follow if needed (some of which are already mentioned in Flowpack.ContentTransfer).
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-04-30