Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it safe to directory backup (tar) attachments while Confluence / JIRA are on?

Jiri Pik
Contributor
May 26, 2019

I have a huge Confluence / JIRA installations with tens of gigabytes of attachments. 

Backing them up takes a long time. The command is, for example,

call(['/bin/tar', '-zcvf', attachments_backup_filename ,'/var/atlassian/application-data/confluence/attachments'])

(1) Is it safe to run this command while Confluence / JIRA are running to maintain the maximum availability?

(2) What is the worst which can happen?

(3) Should I add some additional parameters to the above "tar" command to make it more thread safe?

 

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2019

It is safe to do this while Confluence is running, as you are just reading the files to create an archive.  It won't damage Confluence in any way.

The worst cases are that someone is uploading a new attachment in just the place the backup is running, so you only get part of that file backed up, or your backup locks a file while someone is trying to delete it, so confluence reports a failure to delete to the user.  I don;t think either of those are critical failures.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events