How to disable automatic Backup when upgrading the confluence version (Linux)
Asked by Richi GdeA:

I wish to update the version of Confluence we have on our systems. I have noticed that when I perform the upgrade in Linux, there is a backup process that is initiated. I wish to skip this process since our organization performs regular backups which would greatly reduce the upgrade procedure. Kindly let me know if it is possible to disable the backup process and if it is possible kindly let me know on how to disable the backup process when performing an upgrade.

Thanks in advance for your kind assistance and cooperation.

I look forward to hearing from you soon.


Answers:
author: Nic Brough -Adaptavist-
body: Stick this in the setenv.sh or environment JAVA_OPTS with the other -D parameters before restarting the upgrade

**-Dconfluence.upgrade.recovery.file.enabled=false**

comments: author: Vickey Palzor Lepcha
body: New stuffs for me - thanks Nic.


author: Paul Stahlke
body: It looks like my recovery file is still being generated despite having the recovery parameter set to false in setenv.sh (Amazon Linux). Any ideas?

```
CATALINA_OPTS="-Dconfluence.upgrade.recovery.file.enabled=false ${CATALINA_OPTS}"
```

Waiting over an hour so far on this step...

```
2023-11-01 20:05:49,515 INFO [Catalina-utility-1] [confluence.upgrade.impl.DefaultUpgradeManager] beforeUpgrade Generating pre-upgrade recovery file...
2023-11-01 20:05:49,536 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] begin Starting 
2023-11-01 20:05:49,540 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] logTask Starting DATABASE_INFORMATION 
2023-11-01 20:05:49,545 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] logTask Finishing DATABASE_INFORMATION 
2023-11-01 20:05:49,545 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] logTask Starting TABLE_DEFINITION 
2023-11-01 20:05:51,329 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] logTask Finishing TABLE_DEFINITION 
2023-11-01 20:05:51,329 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] totalNumberOfTables Total number of tables: 432
2023-11-01 20:05:51,329 INFO [Catalina-utility-1] [confluence.upgrade.recovery.ConfluenceProgressMonitor] logTask Starting TABLES_DATA 
-bash-4.2$ 
```


author: Richi GdeA
body: We have way to know what is going on behind the process ? In this case we can follow the process better and if its working well.

comments: author: Nic Brough -Adaptavist-
body: It is telling you what it is doing. "Extracting files" means it is unpacking the distribution. You'll find it moves on to starting the system up and then upgrading data and so on. With messages on screen to tell you.


author: Richi GdeA
body: My problem is when upgrade process do the 'Extracting Files'. It takes a lot of time in this step...

Thank's.

![extracting_files.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/17810i9BF6E3CFF32AA19F/image-size/large?v=v2&px=999 "extracting_files.JPG")

comments: author: Nic Brough -Adaptavist-
body: This will take a while, yes.


author: Vickey Palzor Lepcha
body: Ricard - it does prompt you if you wish to take a backup or not, doesn't it ? You can select no I guess. :-)

comments: author: Kenny Horan
body: There's no prompt in unattended upgrades. When your home directory is many gigabytes the backup takes quite a while.


Tags: backup

upgrade