Skip to content

Commit 9024d6b

Browse files
committed
Update docs, changelog and remove unnecassary formats.
1 parent 8b15faf commit 9024d6b

File tree

5 files changed

+13
-28
lines changed

5 files changed

+13
-28
lines changed

dbbackup/management/commands/dbbackup.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ class Command(BaseDbBackupCommand):
4949
help="Encrypt the backup files",
5050
),
5151
make_option(
52-
"-o",
53-
"--output-filename",
54-
default=None,
55-
help="Specify filename on storage",
52+
"-o", "--output-filename", default=None, help="Specify filename on storage"
5653
),
5754
make_option(
5855
"-O",
@@ -61,10 +58,7 @@ class Command(BaseDbBackupCommand):
6158
help="Specify where to store on local filesystem",
6259
),
6360
make_option(
64-
"-x",
65-
"--exclude-tables",
66-
default=None,
67-
help="Exclude tables from backup",
61+
"-x", "--exclude-tables", default=None, help="Exclude tables from backup"
6862
),
6963
make_option(
7064
"-n",

dbbackup/management/commands/dbrestore.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,10 @@ class Command(BaseDbBackupCommand):
1717
content_type = "db"
1818

1919
option_list = BaseDbBackupCommand.option_list + (
20+
make_option("-d", "--database", help="Database to restore"),
21+
make_option("-i", "--input-filename", help="Specify filename to backup from"),
2022
make_option(
21-
"-d",
22-
"--database",
23-
help="Database to restore",
24-
),
25-
make_option(
26-
"-i",
27-
"--input-filename",
28-
help="Specify filename to backup from",
29-
),
30-
make_option(
31-
"-I",
32-
"--input-path",
33-
help="Specify path on local filesystem to backup from",
23+
"-I", "--input-path", help="Specify path on local filesystem to backup from"
3424
),
3525
make_option(
3626
"-s",

dbbackup/tests/commands/test_dbrestore.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def setUp(self):
4848
self.command.database_name = "default"
4949
self.command.connector = get_connector("default")
5050
self.command.schemas = []
51-
self.command.no_owner = False
5251
HANDLED_FILES.clean()
5352

5453
def tearDown(self):
@@ -150,7 +149,6 @@ def setUp(self):
150149
self.command.input_database_name = None
151150
self.command.servername = HOSTNAME
152151
self.command.schemas = []
153-
self.command.no_owner = False
154152
HANDLED_FILES.clean()
155153
add_private_gpg()
156154

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Unreleased
77
* Fix restore of database from S3 storage by reintroducing inputfile.seek(0) to utils.uncompress_file
88
* Fix bug where dbbackup management command would not respect settings.py:DBBACKUP_DATABASES
99

10+
4.2.0 (2022-01-30)
11+
------------------
12+
* Add PostgreSQL Schema support by @angryfoxx in https://github.com/jazzband/django-dbbackup/pull/507
13+
1014
4.1.0 (2024-01-14)
1115
------------------
1216

docs/databases.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,10 @@ example.
201201
SCHEMAS
202202
~~~~~~~
203203

204-
Schemas to specify when dumping database.
205-
Dump only schemas matching pattern; this selects both the schema itself, and all its contained objects.
206-
When this option is not specified, all non-system schemas in the target database will be dumped.
207-
Multiple schemas can be selected.
208-
This option only available for postgresql connectors.
204+
Specify schemas for database dumps by using a pattern-matching option,
205+
including both the selected schema and its contained objects.
206+
If not specified, the default behavior is to dump all non-system schemas in the target database.
207+
This feature is exclusive to PostgreSQL connectors, and users can choose multiple schemas for a customized dump.
209208

210209
MongoDB
211210
-------

0 commit comments

Comments
 (0)