0 Replies Latest reply on Jul 18, 2013 8:18 AM by great98

    CQ5: Automatic Online Backup Scripts (Tested)

    great98 Level 1

      Hi everybody,

       

      I have designed and tested "CQ5 Automatic Online Backup Scripts " as following, any suggestions and comments:

       

      Automatic Online Backup Scripts (Tested)

       

      1)          Target Locations

      Backup location for author: h:\cq5backup\author

       

       

      Assume that the date and time format of the Windows Server is

                Date: Wed 07/10/2013

                Time: 11:35:59.41

       

       

      set    month=%date:~4,2%

      set      day=%date:~7,2%

      set     year=%date:~10,4%

      set     hour=%time:~0,2%

      set minute=%time:~3,2%

       

       

      The backup file includes the date and time and the format is

       

       

      backup_author_%month%%day%_%hour%%minute%.zip

      e.g., backup_author_0710_1135.zip

       

       

      2) Author URL

      http://author_host:4502/

       

       

      3) CQ5 Management URLs

      http://localhost:4502/crx/explorer

      http://localhost:4502/crx/explorer/config/index.jsp

      http://localhost:4502/system/console/jmx/com.adobe.granite%3Atype%3DRepository

       

       

      4) The backup scripts location

                <CQ5-installation-dir>\crx-quickstart\bin

       

      5) Online Full Backup Scripts for Author

       

       

      onlineAuthorBackup.bat:

      curl -u admin:admin -F "target=h:/cq5backup/author/author_backup_ %date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%.zip" -F "force=true" -F "delay=1" "http://localhost:4502/libs/granite/backup/content/admin/backups.html"