From 58875b818b37f44cf8f8e37701621acc5d8be4b0 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Wed, 8 Feb 2023 21:40:15 +0100 Subject: [PATCH] FEATURE: Create SQL-only backup if there are no uploads (#20221) It doesn't make sense to double-compress the backup when there are no uploads even when the admin requested a backup with uploads. --- lib/backup_restore/backuper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backup_restore/backuper.rb b/lib/backup_restore/backuper.rb index 2483f5bb7b9..ef8d019886d 100644 --- a/lib/backup_restore/backuper.rb +++ b/lib/backup_restore/backuper.rb @@ -11,7 +11,7 @@ module BackupRestore @user_id = user_id @client_id = opts[:client_id] @publish_to_message_bus = opts[:publish_to_message_bus] || false - @with_uploads = opts[:with_uploads].nil? ? include_uploads? : opts[:with_uploads] + @with_uploads = opts[:with_uploads] == false ? false : include_uploads? @filename_override = opts[:filename] @ticket = opts[:ticket]