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

Backup Parameter In Varfile Is Ignored

    XMLWordPrintable

Details

    Description

      Although a .varfile with backupConfluence$Boolean=false parameter is used as an input to the installer, Confluence is backed-up during unattended upgrade. It seems that it follow the parameter specified in the existing Installation Directory.

      Steps To Reproduce

      If both varfiles (input file and existing) have backupConfluence$Boolean=false parameter, no backup of the home directory is made:

      root@intapp05-test:~# ls  -l /var/atlassian/application-data/
      total 5879000
      -rw-r-----  1 confluence confluence 1019730414 Feb 17  2014 2014_02_17-confluence-5.2.3-back.zip
      -rw-r--r--  1 root       root       1405842447 Jul 28 12:51 2014_07_28-confluence-5.3.4-back.zip
      -rw-r-----  1 confluence confluence 1099745709 Jul 28 16:15 2014_07_28-confluence-5.5.3-back.zip
      -rw-r-----  1 confluence confluence 1279102578 Nov  4 15:22 2014_11_04-confluence-5.5.3-back.zip
      -rw-r--r--  1 root       root       1215642550 Nov 21 17:27 2014_11_21-confluence-5.5.3-back.zip
      drwx------ 20 confluence confluence       4096 Nov 23 17:50 confluence
      root@intapp05-test:~# date
      Sun Nov 23 17:52:09 CET 2014
      root@intapp05-test:~# cat /opt/adnconfluence/template/config/response-upgrade.varfile
      #install4j response file for Confluence 5.5.3
      #Tue Nov 04 16:12:17 CET 2014
      executeLauncherAction$Boolean=true
      app.install.service$Boolean=true
      existingInstallationDir=/opt/atlassian/confluence
      sys.confirmedUpdateInstallationString=true
      sys.languageId=en
      backupConfluence$Boolean=false
      sys.installationDir=/opt/atlassian/confluence
      root@intapp05-test:~# cat /opt/atlassian/confluence/./.install4j/response.varfile
      #install4j response file for Confluence 5.5.3
      #Sun Nov 23 17:48:57 CET 2014
      executeLauncherAction$Boolean=true
      app.install.service$Boolean=false
      existingInstallationDir=/opt/atlassian/confluence
      sys.confirmedUpdateInstallationString=true
      sys.languageId=en
      backupConfluence$Boolean=false
      sys.installationDir=/opt/atlassian/confluence
      root@intapp05-test:~#  /opt/adnconfluence/sw/atlassian-confluence-5.5.3-x64.bin  -q  -varfile /opt/adnconfluence/template/config/response-upgrade.varfile
      Unpacking JRE ...
      Starting Installer ...
      Nov 23, 2014 5:52:27 PM java.util.prefs.FileSystemPreferences$2 run
      INFO: Created system preferences directory in java.home.
      Nov 23, 2014 5:52:29 PM com.atlassian.modzdetector.ModzDetector getModifiedFiles
      INFO: Time taken (ms) to check registry: 1081
      Nov 23, 2014 5:52:30 PM com.atlassian.modzdetector.ModzDetector getModifiedFiles
      INFO: Time taken (ms) to check registry: 650
      Shutting down Confluence...
      Checking if Confluence has been shutdown...
      Backing up the Confluence installation directory
      Deleting the previous Confluence installation directory...
      Extracting files ...
      Launching Confluence ...
      Nov 23, 2014 5:53:50 PM com.atlassian.modzdetector.HashRegistry store
      INFO: wrote 819 hashes to /opt/atlassian/confluence/install.reg
      Finishing installation ...
      root@intapp05-test:~# ls  -l /var/atlassian/application-data/
      total 5879000
      -rw-r-----  1 confluence confluence 1019730414 Feb 17  2014 2014_02_17-confluence-5.2.3-back.zip
      -rw-r--r--  1 root       root       1405842447 Jul 28 12:51 2014_07_28-confluence-5.3.4-back.zip
      -rw-r-----  1 confluence confluence 1099745709 Jul 28 16:15 2014_07_28-confluence-5.5.3-back.zip
      -rw-r-----  1 confluence confluence 1279102578 Nov  4 15:22 2014_11_04-confluence-5.5.3-back.zip
      -rw-r--r--  1 root       root       1215642550 Nov 21 17:27 2014_11_21-confluence-5.5.3-back.zip
      drwx------ 20 confluence confluence       4096 Nov 23 17:53 confluence
      

      If the varfile given as argument to the installer has backupConfluence$Boolean=false but /opt/atlassian/confluence/./.install4j/response.varfile has backupConfluence$Boolean=true then a backup of the home dir is made:

      root@intapp05-test:~# ls  -l /var/atlassian/application-data/
      total 5879000
      -rw-r-----  1 confluence confluence 1019730414 Feb 17  2014 2014_02_17-confluence-5.2.3-back.zip
      -rw-r--r--  1 root       root       1405842447 Jul 28 12:51 2014_07_28-confluence-5.3.4-back.zip
      -rw-r-----  1 confluence confluence 1099745709 Jul 28 16:15 2014_07_28-confluence-5.5.3-back.zip
      -rw-r-----  1 confluence confluence 1279102578 Nov  4 15:22 2014_11_04-confluence-5.5.3-back.zip
      -rw-r--r--  1 root       root       1215642550 Nov 21 17:27 2014_11_21-confluence-5.5.3-back.zip
      drwx------ 20 confluence confluence       4096 Nov 23 17:53 confluence
      root@intapp05-test:~# date
      Sun Nov 23 17:55:12 CET 2014
      root@intapp05-test:~# cat /opt/adnconfluence/template/config/response-upgrade.varfile#install4j response file for Confluence 5.5.3
      #Tue Nov 04 16:12:17 CET 2014
      executeLauncherAction$Boolean=true
      app.install.service$Boolean=true
      existingInstallationDir=/opt/atlassian/confluence
      sys.confirmedUpdateInstallationString=true
      sys.languageId=en
      backupConfluence$Boolean=false
      sys.installationDir=/opt/atlassian/confluence
      root@intapp05-test:~# cat /opt/atlassian/confluence/./.install4j/response.varfile#install4j response file for Confluence 5.5.3
      #Sun Nov 23 17:53:50 CET 2014
      executeLauncherAction$Boolean=true
      app.install.service$Boolean=false
      existingInstallationDir=/opt/atlassian/confluence
      sys.confirmedUpdateInstallationString=true
      sys.languageId=en
      backupConfluence$Boolean=true
      sys.installationDir=/opt/atlassian/confluence
      root@intapp05-test:~#  /opt/adnconfluence/sw/atlassian-confluence-5.5.3-x64.bin  -q  -varfile /opt/adnconfluence/template/config/response-upgrade.varfile
      Unpacking JRE ...
      Starting Installer ...
      Nov 23, 2014 5:55:53 PM java.util.prefs.FileSystemPreferences$2 run
      INFO: Created system preferences directory in java.home.
      Nov 23, 2014 5:55:54 PM com.atlassian.modzdetector.ModzDetector getModifiedFiles
      INFO: Time taken (ms) to check registry: 1076
      Nov 23, 2014 5:55:55 PM com.atlassian.modzdetector.ModzDetector getModifiedFiles
      INFO: Time taken (ms) to check registry: 625
      Shutting down Confluence...
      Checking if Confluence has been shutdown...
      Backing up the Confluence installation directory
      Backing up the Confluence home directory
      Deleting the previous Confluence installation directory...
      Extracting files ...
      Launching Confluence ...
      Nov 23, 2014 5:59:17 PM com.atlassian.modzdetector.HashRegistry store
      INFO: wrote 819 hashes to /opt/atlassian/confluence/install.reg
      Finishing installation ...
      root@intapp05-test:~# ls  -l /var/atlassian/application-data/
      total 7066332
      -rw-r-----  1 confluence confluence 1019730414 Feb 17  2014 2014_02_17-confluence-5.2.3-back.zip
      -rw-r--r--  1 root       root       1405842447 Jul 28 12:51 2014_07_28-confluence-5.3.4-back.zip
      -rw-r-----  1 confluence confluence 1099745709 Jul 28 16:15 2014_07_28-confluence-5.5.3-back.zip
      -rw-r-----  1 confluence confluence 1279102578 Nov  4 15:22 2014_11_04-confluence-5.5.3-back.zip
      -rw-r--r--  1 root       root       1215642550 Nov 21 17:27 2014_11_21-confluence-5.5.3-back.zip
      -rw-r--r--  1 root       root       1215819916 Nov 23 17:58 2014_11_23-confluence-5.5.3-back.zip
      drwx------ 20 confluence confluence       4096 Nov 23 17:59 confluence
      root@intapp05-test:~# cat /opt/atlassian/confluence/./.install4j/response.varfile
      #install4j response file for Confluence 5.5.3
      #Sun Nov 23 17:59:17 CET 2014
      executeLauncherAction$Boolean=true
      app.install.service$Boolean=false
      existingInstallationDir=/opt/atlassian/confluence
      sys.confirmedUpdateInstallationString=true
      sys.languageId=en
      backupConfluence$Boolean=true
      sys.installationDir=/opt/atlassian/confluence
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            prompas Patrice Rompas (Inactive)
            Votes:
            16 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated: