Hello,
How to maintain daily backup to maintain the data from server.
What is the best approach.
Regards,
Satish Sapate.
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
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
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.
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
North America
Europe, Middle East and Africa
Asia Pacific