2 fixes for the backup dialogue when using directory format:

Ensure compression level is passed to pg_dump when backing up in directory format. Fixes #4482
Ensure the number of jobs can be specified when backing up in directory format. Fixes #4483
This commit is contained in:
Aditya Toshniwal
2019-10-25 13:21:53 +01:00
committed by Dave Page
parent 1f6a0a87f6
commit 2182dc3cc5
3 changed files with 9 additions and 2 deletions

View File

@@ -386,8 +386,10 @@ def create_backup_objects_job(sid):
set_param('blobs', '--blobs')
elif data['format'] == 'plain':
args.extend(['--format=p'])
set_value('ratio', '--compress')
elif data['format'] == 'directory':
args.extend(['--format=d'])
set_value('ratio', '--compress')
if 'only_data' in data and data['only_data']:
set_param('only_data', '--data-only')

View File

@@ -178,7 +178,10 @@ define([
type: 'int',
min: 0,
max: 9,
disabled: false,
deps: ['format'],
disabled: function(m) {
return (m.get('format') === 'tar');
},
visible: function(m) {
if (!_.isUndefined(m.get('type')) && m.get('type') === 'server')
return false;
@@ -207,7 +210,7 @@ define([
type: 'int',
deps: ['format'],
disabled: function(m) {
return !(m.get('format') === 'Directory');
return !(m.get('format') === 'directory');
},
visible: function(m) {
if (!_.isUndefined(m.get('type')) && m.get('type') === 'server')