mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-10 14:37:03 +02:00
tests: windows compatibility, archive_command for windows
This commit is contained in:
parent
c7d7ceb5bb
commit
04b96de31f
@ -877,8 +877,15 @@ class ProbackupTest(object):
|
|||||||
'postgresql.auto.conf',
|
'postgresql.auto.conf',
|
||||||
'archive_mode = {0}'.format(archive_mode)
|
'archive_mode = {0}'.format(archive_mode)
|
||||||
)
|
)
|
||||||
archive_command = '"{0}" archive-push -B {1} --instance={2} '.format(
|
if os.name == 'posix':
|
||||||
self.probackup_path, backup_dir, instance)
|
archive_command = '"{0}" archive-push -B {1} --instance={2} '.format(
|
||||||
|
self.probackup_path, backup_dir, instance)
|
||||||
|
|
||||||
|
elif os.name == 'nt':
|
||||||
|
archive_command = '"{0}" archive-push -B {1} --instance={2} '.format(
|
||||||
|
self.probackup_path.replace("\\","\\\\"),
|
||||||
|
backup_dir.replace("\\","\\\\"),
|
||||||
|
instance)
|
||||||
|
|
||||||
if self.archive_compress or compress:
|
if self.archive_compress or compress:
|
||||||
archive_command = archive_command + '--compress '
|
archive_command = archive_command + '--compress '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user