Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-43070

XML backup job does not complete/creates corrupt backup when scheduled Clean Temporary Directory job deletes information from the temp folder

XMLWordPrintable

      Summary

      The Clean Temporary Directory scheduled job will run even if an XML backup is running, causing the files created by the backup in the temp directory to be deleted. The backup continues even though the files are not present, and at the end of the backup process, a .zip file is created with only partial data.

      Steps to Reproduce

      1. Run a long running backup job that will overlap with the scheduled job, Clean Temporary Directory.

      Expected Results

      1. The backup completes successfully

      Actual Results

      1. The backup beings creating the appropriate files in the temp directory
      2. The scheduled Clean Temporary Directory job clears out the temp directory
      3. The backup job continues in the background and will continue to use memory and resources.
      4. Eventually a broken .zip file will be created
      5. We'll see the in-progress backup is being deleted at scheduled times, and the final .zip file is incomplete and only contains the data from the last run of the Clean Temporary Directory job. It is not restorable.

      Workaround

      Use a cron expression to set the "Clean Temporary Directory" schedule to a date in the future that will not interrupt with your backup job.

      1. Cog Icon > General Administration > Scheduled Jobs
      2. Edit Clean Temporary Directory
      3. Set the Cron Expression to a time that is after your manual backup

              5339cdd01cf4 Jeffery Xie
              rlouie Robert Louie
              Votes:
              13 Vote for this issue
              Watchers:
              27 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 21h
                  21h
                  Remaining:
                  Remaining Estimate - 21h
                  21h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified