ในฐานะผู้พัฒนา เมื่อคุณโอนไซต์จากเซิร์ฟเวอร์ 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]
หากไม่ได้ตั้งค่าตัวเลือก --execute
ไว้ หลังจากที่ cec 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