Confluence creates backup twice
Asked by Ren? Wilby:

Hello everyone,

we configured a daily backup for our confluence system. The backup is scheduled to run daily (0 0 2 \* \* ?). The backup produces zip-files with the name-pattern "backup-yyyy_MM_dd.zip" in the backup directory.

Surprisingly confluence also creates daily zip-files with a name-pattern like "xmlexport-20180202-020005-1.zip" in the same directory at roughly the same time.

Somehow it seems that confluence creates the schedules backup twice. Can this be possible? How can I tell confluence to create only one backup?

Thanks in advance and kind regards,

Ren?


Answers:
author: Thomas Deiler
body: Dear [@Ren? Wilby](/t5/user/viewprofilepage/user-id/700027),

the backup type is different, can you have a look at General Configuration -\> Scheduled Jobs? Is there anything else configured at 2am?

So long

Thomas

comments: author: Ren? Wilby
body: Hello [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715),

thank you for your reply. There are two task scheduled for 2am:

1. "Confluence sichern" (*Backup Confluence*)
2. "Journaleintr?ge l?schen" (*Delete Journal Entries)*

Kind regards,

Ren?


author: Thomas Deiler
body: Dear [@Ren? Wilby](/t5/user/viewprofilepage/user-id/700027),

ok - seems quite ok. Can you just login to the servers command line and have a look, how both files differ?

I fond this [article](https://community.atlassian.com/t5/Confluence-questions/Downloading-backup-with-Confluence-5-1/qaq-p/418088). As far as I have understood, it has something to do with manual backups.

So long

Thomas


author: Ren? Wilby
body: Hello [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715),

the content of both zip files the same.

I read the article you mentiod and had a look inside the file "confluence.cfg.xml". There is an entry for the property "webwork.multipart.saveDir". The value of this property points to the same location ("/mnt/backup/confluence") like the location configured for the regular backup.

As mentioned in this [article](https://confluence.atlassian.com/confkb/too-many-files-in-the-temp-directory-change-the-backup-directory-for-a-manual-backup-104300768.html), the property "webwork.multipart.saveDir" seems to be the location for temporary files in confluence.

Maybe confluence creates the backup as tempoary file first and when this is done confluence creates the "real" backup file. Bothe files are located in the directory.

If this is the case, I would expect that confluence would delete the temporary file after the backup process has finished?

Ren?


author: Thomas Deiler
body: Dear [@Ren? Wilby](/t5/user/viewprofilepage/user-id/700027),

do both fiels have an identical time stamp (in milliseconds)?

It is possible, that Confluence has a problem with removing the file - anything in the log files?

I would not invest too much time in this. Just create a cron job to remove the dublicates.

So long

Thomas


author: Ren? Wilby
body: Dear [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715),

the regular backup files have a timestamp between 02:08 and 02:15. The xmlexport-\*.zip files have a constant timestamp of 02:10.

I will schedule a cronjob to delete the unwanted xmlexport-\*.zip files. Thank you for your advice.

Kind regards,

Ren?