Index: trunk/backup/worker.py |
— | — | @@ -691,7 +691,11 @@ |
692 | 692 | def buildFilters(self, runner): |
693 | 693 | """Construct the output filter options for dumpTextPass.php""" |
694 | 694 | xmlbz2 = self._path(runner, "bz2") |
695 | | - return "--output=dbzip2:%s" % shellEscape(xmlbz2) |
| 695 | + if runner.config.bzip2[-6:] == "dbzip2": |
| 696 | + bz2mode = "dbzip2" |
| 697 | + else: |
| 698 | + bz2mode = "bzip2" |
| 699 | + return "--output=%s:%s" % shellEscape(bz2mode, xmlbz2) |
696 | 700 | |
697 | 701 | def buildCommand(self, runner): |
698 | 702 | """Build the command line for the dump, minus output and filter options""" |