Skip navigation

CQ5

Currently Being Moderated

What is the best approach to take daily backup of application from CQ5 Server ?

Jun 21, 2012 2:25 PM

Hello,

 

How to maintain daily backup to maintain the data from server.

What is the best approach.

 

Regards,

Satish Sapate.

 
Replies
  • Currently Being Moderated
    Jun 25, 2012 5:41 AM   in reply to Satish@pune

    CRX has an online backup tool that can be invoked through a web UI or by HTTP.  That means you can use cURL to automate backups if you wish.  This is a nice tool, because it knows how to take "hot" backups of the repository by managing node locks and conflicts nicely.  It's much safer than simply copying your crx-quickstart folder on a running instance, which can cause some bad things to happen.

     

    Here's the CQ doc on it:

    http://dev.day.com/docs/en/crx/current/administering/backup_and_restor e.html#Online%20Backup

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 10:01 AM   in reply to Satish@pune

    Linking shared from ryan should give enough information. 

     

    If case backing up large repository you may know Data Store store holds large binaries and are only stored once. To reduce the backup time remove the datastore from the backup by following [1] (CQ 5.3 example)

     

     

    [1] In order to remove the datastore from the backup you will need to do the following:

    Assuming your repository is under /website/crx/repository and you want to move your datastore to /website/crx/datastore

     

        stop the crx instance

        mv /website/crx/repository/shared/repository/datastore /website/crx/

        Then modify repository.xml by adding the new path configuration to the DataStore element.

     

     

    Before:

    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">

    <param name="minRecordLength" value="4096"/>

    </DataStore>

     

    After:

    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">

    <param name="path" value="/website/crx/datastore"/>

    <param name="minRecordLength" value="4096"/>

    </DataStore>

     

    After doing this then you can safely run separate backups on the datastore while the system is running without affecting performance very much.

     

    Following our example, you could use rsync to backup the datstore:

    rsync --av --ignore-existing /website/crx/datastore /website/backup/datastore

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2012 1:59 AM   in reply to Satish@pune

    And while we're at it:

     

    Is there any possibility to use a user besides admin for making backups? I'm thinking about a user who has global read permissions, but no write permissions.

     

    A first try shows me that a user like that isn't authorized to talk to crx/config/backup.jsp

     

    I don't want the admin credentials on the system which triggers the backup.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 10:43 AM   in reply to ranged

    In 5.5 you could use granit backup with appropriate permission to take backup beside admin

    http://localhost:4502/libs/granite/backup/content/admin.html

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points