Hello,
Context:
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.
Thanks!
Hi @jachiev
It's not recommended to run tar.
Why?
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.
Thanks,
Pramodh
Hello @Pramodh M
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?
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For large instances, Jira automated backup is often not recommended because it actually freezes the server every time it runs.
I've tried rsync and just run it during off-hours, it works great!
If using AWS, let AWS create a backup instead of the application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using tar and then doing rsync of that tar file is not recommended, however, doing rsync as @brbojorque said works. remember off-hours.
If it's not a large instance go with a Jira-backed zip file. It would suffice.
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.