cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform automatic/scheduled backups in alfresco community 5.2 for windows?

rajiv8495
Champ on-the-rise
Champ on-the-rise

Hi,

Can anyone mention the steps to perform automatic backup for the entire repository in alfresco share 5.2 for windows?

Thanks in advance

8 REPLIES 8

dan18fan
Champ in-the-making
Champ in-the-making

From what I have been experiencing since I'm new here too.. I did copy the "alf_data" folder located in my alfresco installation folder, then reinstalled Alfresco Community (without starting the service yet, uncheck that in the final installation step), copied the alf_data from the older installation to the new installation folder, it will ask you if you want to replace the files inside, you click yes, then you start the service again, and log in with your user and everything you had is there.

I've read some different things about "hot and cold" backups, something that I don't understand that much for now really, but this method worked for my needs, just gotta check if it works when a new alfresco community version comes out.

douglascrp
World-Class Innovator
World-Class Innovator

First you should check what a backup is, and how it should be done.

A good source of information on the topic is following link Alfresco Backup and Disaster Recovery - White Paper.pdf - Google Drive 

And then you can check a simple script I created in the past to perform incremental backups on Windows

A simple incremental backup script for Alfresco on Windows · GitHub 

I hope you find this useful

Hi Douglas,

Thank you for providing the solution. Can you please provide the steps to use the bat file?

Thanks,

Rajiv

Can someone please help me out??

douglascrp
World-Class Innovator
World-Class Innovator

Well, all you have to do is to edit the script in order to reflect your environment (file paths, parameters, etc), and then use the Windows scheduler to execute it the time you want it.

Whenever i try to run the script, I exits itself within 2-3 seconds. Is there any problem with the script?

Thanks

I get this error when i run the bat file

douglascrp
World-Class Innovator
World-Class Innovator

Well, judging by the log file you shared, I see you executed the script without even trying to understand it. That is dangerous, and you should never do that. Can you imagine if it had a "delete" command somewhere?

Try to read and understand it, then do the required changes to match your environment (change the file paths, users and passwords) and only after that, execute it.