I have a Jira Server instance running on a Linux server. I want every night the jira-home directory is backup in an X destination of the server. But as I want that to be automatic, I don't want to stop the Jira service to do this procedure.
As you know this jira-home directory is a "live" directory, it has a constant change in the files while the application runs.
I want to set up a cron job for this process, using the "rsycn" or "tar" command for that. where the source directory is the "live" directory home from jira.
My question is, is it safe to run any of these commands under a "live" source directory?
Data is not compromised/missing/corrupted?
If you have a better idea of how to achieve such a goal, I listen.
It's not recommended to run tar.
Although it doesn't affect the running Jira process, as there will be write operations to Jira home directory and at that moment you are running tar, there will be some oddities (there might be duplicated files, missing files)
I recommend going with the Jira-backed zip file and if you can increase the resource of that server, that would suffice.
So you mean that I should use the automatic export system from JIRA software that exports XML backup into a zip file at <jira-home>/export?
I was thinking the same thing, But I also want to keep a backup on the attachments.
or did I misunderstood the solution?
I think I will go with rsync, now that I know it is safe for the system to be used (taking in consideration that new data can be updated during the process and run that process during off-hours)
I would like to use the Jira automated backups, but with the use case, I just had this week. I also require to have the attachments to be available in a restore.
My proposal process for a script:
@brbojorque thanks for the info. Very helpful. I have the server in AZURE... I see your point. The problem is that I don't manage that admin interface. that is IT responsibility in my company. So I want to avoid any dependency because IT is not even in my timezone (which makes it very frustrating and difficult).
Thanks a lot for the inputs.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event