Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How do I speed up AEM backup?

Avatar

Level 4

We have a nightly backup on our 6.3 authoring environment. We have a script that shuts down the server, then makes a tar file of the authoring directory, grabbing the crx-quickstart directory, license, initial jar file, and so on. Once it's done, it restarts the server and gzips the backup file.

The tar process is taking a very long time - around 12 hours or more - which impacts when we can use the authoring environment.

I cannot exactly say how big the repository is (the du command never finishes) but the backup files (after gzip) are ~70G. (The last file was 150G, but I'm not sure if it was compressed or not.)

Removing content is not an option, because we don't know what older content they can get rid of or will need later on.

Any recommendations to help us in this process? Or for backups in general?

1 Accepted Solution

Avatar

Correct answer by
Employee

Check out

CRX 2.1: Improved backup – Things on a content management system

It is a bit older - but the basic ideas should still be applicable to AEM6.3.

Another idea - use a filesystem that supports snapshots. You would then stop AEM, take a snapshot restart and then back up the snapshot in the background.

View solution in original post

4 Replies

Avatar

Employee Advisor

You can run offline compaction to reduce the size of the segment store and that will help in reducing the time it will take for the backup.

Avatar

Employee

You can always do an offline backup. This requires a downtime of AEM, but can be quite efficient in terms of required time compared to an online backup.

Backup and Restore

Avatar

Level 4

You could use Rsync for about 2 times while the system is running and then the last rsync can be taken by shutting down the server where the downtime would be less as the last rsync would only copy delta and most of the data is already copied from previous rsync.

Rsync for the 1st time while the instance is running - takes time for the 1st time

Rsync for the 2nd time while the instance is running - copies over delta should be relatively fast

Rsync for the 3rd time shutting the instance down - quick delta copy and start the instance

After the above stages you could look at options to compress it which shouldn't affect the instance.

Another option to look at is taking SNAPSHOT which is more effective in terms of backup and restore

Avatar

Correct answer by
Employee

Check out

CRX 2.1: Improved backup – Things on a content management system

It is a bit older - but the basic ideas should still be applicable to AEM6.3.

Another idea - use a filesystem that supports snapshots. You would then stop AEM, take a snapshot restart and then back up the snapshot in the background.