Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb37bf8

Browse files
committed
Merge branch 'master' into issue_79
2 parents836382f +dd2d85d commitcb37bf8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ As compared to other backup solutions, `pg_probackup` offers the following benef
1717
* Extended logging settings
1818
* Custom commands to simplify WAL log archiving
1919
* External to PGDATA directories, such as directories with config files and scripts, can be included in backup
20-
* Remote backup, restore, archive-push and archive-get operations via ssh (beta)
20+
* Remote backup, restore,add-instance,archive-push and archive-get operations via ssh (beta)
2121
* Checking running PostgreSQL instance for the sights of corruption in read-only mode via`checkdb` command.
2222

2323
To manage backup data,`pg_probackup` creates a backup catalog. This directory stores all backup files with additional meta information, as well as WAL archives required for[point-in-time recovery](https://postgrespro.com/docs/postgresql/current/continuous-archiving.html). You can store backups for different instances in separate subdirectories of a single backup catalog.

‎tests/helpers/ptrack_helpers.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ def get_backup_filelist_diff(self, filelist_A, filelist_B):
589589
# used for partial restore
590590
deftruncate_every_file_in_dir(self,path):
591591
forfileinos.listdir(path):
592-
print(file)
593592
withopen(os.path.join(path,file),"w")asf:
594593
f.close()
595594

@@ -743,20 +742,24 @@ def clean_pb(self, backup_dir):
743742

744743
defbackup_node(
745744
self,backup_dir,instance,node,data_dir=False,
746-
backup_type='full',options=[],asynchronous=False,gdb=False,
745+
backup_type='full',datname=False,options=[],
746+
asynchronous=False,gdb=False,
747747
old_binary=False,return_id=True
748748
):
749749
ifnotnodeandnotdata_dir:
750750
print('You must provide ether node or data_dir for backup')
751751
exit(1)
752752

753+
ifnotdatname:
754+
datname='postgres'
755+
753756
cmd_list= [
754757
'backup',
755758
'-B',backup_dir,
756759
'--instance={0}'.format(instance),
757760
# "-D", pgdata,
758761
'-p','%i'%node.port,
759-
'-d','postgres'
762+
'-d',datname
760763
]
761764

762765
ifdata_dir:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp