Since Apache Sling makes sure that all “activated” (published) CQ DAM assets have URIs, you can programmatically download DAM content with a command-line HTTP utility such as cURL. cURL also lets you include these commands in a Windows batch or PowerShell script.
c:\Programs\cURL>curl http://jayan.kandathil.org:4503/content/dam/guides/manual.pdf > C:\TEMP\manual.pdf
Many administrative and maintenance operations can also be remotely executed on both the “author” and “publish” CQ instances if you had Administrator (“admin”) credentials.
1) Create a folder in /apps called myFolder:
c:\Programs\cURL>curl -u admin:admin -Fjcr:primaryType=sling:Folder http://localhost:4502/content/dam/myFolder
2) Copy the folder /content/dam/geometrixx/icons/ (and its contents) to /content/dam/myFolder
c:\Programs\cURL>curl -u admin:admin -F:operation=copy -F:dest=/content/dam/myFolder/ http://localhost:4502/content/dam/geometrixx/icons/
3) Backup the CQ instance to the server filesystem (/content/BACKUP/Mar20-2012.zip). For example, if the CQ author instance is at C:\Programs\Adobe\CQ_5.5\author\, then the backup will be made to C:\Programs\Adobe\CQ_5.5\BACKUP\
curl -u admin:admin -X POST http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository/op/startBackup/java.lang.String?target=/BACKUP/Mar20-2012.zip
No comments:
Post a Comment
If you have any doubts or questions, please let us know.