Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.4.0, 6.6.13, 6.11.2, 6.15.4
-
None
-
18
-
Severity 3 - Minor
-
1
-
Description
Summary
When changing the value for confluence.home in confuence-init.properties after original installation, the backups still use the original value.
Environment
- Confluence 6.4.0
Steps to Reproduce
- Install Confluence 6.4.0 (either installer or manually)
- Set Confluence up and compete configuration
- At this point manual and nightly backups will be in <confluence-home>/backups
- Shutdown Confluence
- Edit <confluence-install>/WEB-INF/classes/confluence-init.properties and change confluence.home to a new location
- Move all the data from the original home directory to the new one
- Create the directory <original-confluence-home>/backups
- Restart Confluence
- Go to > General Configuration > Backup Administration and confirm that the backup path is the new destination
- Go to > General Configuration > Backup & Restore
- Check Archive to backups folder and click Back up
Note now that we have the message
An archive copy of the backup has been created at <original-confluence-home>/backups/xmlexport-20170913-165125-3.zip.
And checking the directory we can see the file is in the original location still.
Expected Results
The backup goes to the new home backups folder.
Actual Results
The backup is dropped in the original backups folder.
Notes
Using the XML export is not recommended as a production backup strategy
The data is not changed in the bandana table
select * from bandana where bandanakey ='atlassian.confluence.settings';
and look for <backupPath>...</backupPath>
Workaround
Manually set the backup path via the steps in
This is an unsuported change
- Shutdown Confluence
- Update the BANDANA table with a replace statement, for example
update bandana set bandanavalue = replace(bandanavalue, '<backupPath>OLD BACKUP PATH</backupPath>', '<backupPath>NEW BACKUP PATH</backupPath>');
Where
- OLD_BACKUP_PATH is something like /var/atlassian/application-data/confluence/backups
- NEW_BACKUP_PATH is something like /mnt/confluence/backups
Additional Note
- Moving from Server to Data Center, the backup path is not changed to "<shared-home>/backups" instead follows the old location "<local-home>/backups"
Attachments
Issue Links
- relates to
-
CONFSERVER-28575 Wrong backup path is used for archived backups after performing a site import
- Closed