Skip to content

Commit 3b0b8c2

Browse files
committed
Remove MySQL/MariaDB timestamp comments and force consistent ordering - https://forum.restic.net/t/the-dream-mysql-backups/737/8
1 parent 386532a commit 3b0b8c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/restic_compose_backup/containers_db.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def dump_command(self) -> list:
4949
"--all-databases",
5050
"--no-tablespaces",
5151
"--single-transaction",
52+
"--order-by-primary",
53+
"--compact",
54+
"--extended-insert",
55+
"--force"
5256
]
5357

5458
def backup(self):
@@ -116,6 +120,10 @@ def dump_command(self) -> list:
116120
"--all-databases",
117121
"--no-tablespaces",
118122
"--single-transaction",
123+
"--order-by-primary",
124+
"--compact",
125+
"--extended-insert",
126+
"--force"
119127
]
120128

121129
def backup(self):

0 commit comments

Comments
 (0)