Forums

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

Confluence Backup fails with IOException

Christopher Lewis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2017

I'm trying to make a backup of my Confluence installation (General configuration / Backup and restore). I choose "Archive to backups folder" and "Backup attachments" and always get this error:

java.io.IOException: No such file or directory
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:461)
	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:397)
	at com.atlassian.confluence.importexport.actions.BackupAction.execute(BackupAction.java:69)

It also happens if "Backup attachments" is unchecked.

When I uncheck the option "Archive to backups folder", no error is shown, but not backup file is created in the expected location.

Now this error message isn't that helpful. The restore folder exists and is writeable for the confluence user; it even contains an older backup file, so the backup functionality seems to have worked before.

Any ideas?

2 answers

0 votes
Ahmet Kilic
Contributor
August 21, 2020

Enabling Backup Path Configuration 

For security reasons, the ability to change the backup file location Backup administration screen is disabled by default. 

To enable custom backup paths:

  1. Stop Confluence. 
  2. Edit the <confluence-home>/confluence.cfg.xml file. 
  3. Change the value of the following property to true:

0 votes
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.
September 4, 2017

It might not be the exports/backups directory that it cannot read/write.  It uses temporary caches and temp directories, so it could be one of them, and it might even be the attachments directories its trying to write.

Does the error not say what it was trying to do?

Christopher Lewis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2017

Unfortunateley not.

I now managed to migrate my Confluence installation by importing a database dump on the new server after the installation process, even if this is not the recommended way to do it.

Thanks for your help anyway!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events