下載或上傳群組中網站的內容項目

若為開發人員,當您從 Oracle Content Management 伺服器傳輸網站至另一個伺服器時,您可以下載或上傳群組中網站的內容項目。

若要傳輸包含大量內容資產的網站,您必須區隔網站與其內容。傳輸不包含 (cec transfer-site --excludecontent ) 內容的網站後,請使用 cec transfer-site-content 以傳輸網站的內容。

例如:

cec transfer-site-content <name>

此命令建立命令檔以將企業網站內容從 Oracle Content Management 伺服器傳輸至另一個伺服器。該命令用於傳輸大量的內容項目,且這些項目為批次傳輸。依照預設,此命令將不會執行命令檔,並會傳輸所有資產。您可指定 -p 來僅傳輸已發布資產。

使用 -s <server> 指定來源伺服器,以及使用 -d <destination> 指定目標伺服器。

選項

--destination, -d The registered CEC server to transfer the content [required]
--repository, -r Repository [required]
--publishedassets, -p The flag to indicate published assets only
--number, -n The number of items in each batch, defaults to 500
--execute, -e Execute the scripts
--help, -h Show help [boolean]

若未設定選項 --executecec transfer-site-content 完成後,請執行產生的命令檔 <site name>_downloadcontent 以從來源伺服器下載內容,並執行 <site name>_uploadcontent 以將下載的內容上傳到目標伺服器。

範例

cec transfer-site-content Site1 -s DEV -d UAT -r Repository1 Generate script Site1_downloadcontent and Site1_uploadcontent
cec transfer-site-content Site1 -s DEV -d UAT -r Repository1 -e Generate script Site1_downloadcontent and Site1_uploadcontent and execute them
cec transfer-site-content Site1 -s DEV -d UAT -r Repository1 -n 200
cec transfer-site-content Site1 -s DEV -d UAT -r Repository1 -p