Separate backup for each site

Michał Janusz, modified 4 Years ago. New Member Posts: 14 Join Date: 3/8/16 Recent Posts

Hi everyone,

I am currently trying to find a way to backup and restore single site in a multi-site Liferay installation. 

So far I found multiple articles and forum posts how to backup and restore entire Liferay installation (dump DB, copy files from /data). The problem is that I am running Liferay installation with 50+ sites and when one of the sites becomes damaged I need to restore all of them. I am looking for a possibility to backup and restore a single site without rolling back other sites to older version.

Thanks in advance for your answer.

thumbnail
Michał Janusz, modified 4 Years ago. Regular Member Posts: 149 Join Date: 7/6/11 Recent Posts

Hey Michał, you can try to restore the whole backup in a different environment and export the site that you need to store through a LAR file from this new enviroment and import in the existing one.

Michał Janusz, modified 4 Years ago. New Member Posts: 14 Join Date: 3/8/16 Recent Posts

Thanks. I think this is the only way to go.

thumbnail
Olaf Kock, modified 4 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

Notice that this is hardly a backup (in the sense that you can use it to restore a fully functioning system): It might rely on certain user accounts (that are not site specific) to exist, as they might have authored content. It might rely on some global configuration that is not site specific and doesn't end up in LAR files. And LAR files are heavily version dependent - e.g. right after upgrading even a minor bump you'll have to create them new - there's no guarantee you can use any LAR created on patchlevel A with one on patchlevel B, however much differece exists between them.