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

Commitd0be25c

Browse files
committed
Merge branch 'REL_2_5'
2 parentsf45f87f +f361dda commitd0be25c

File tree

9 files changed

+546
-566
lines changed

9 files changed

+546
-566
lines changed

‎doc/pgprobackup.xml

Lines changed: 520 additions & 540 deletions
Large diffs are not rendered by default.

‎po/ru.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ msgstr ""
811811
#:src/help.c:360src/help.c:521src/help.c:588src/help.c:635src/help.c:715
812812
#:src/help.c:761src/help.c:833
813813
#,c-format
814-
msgid" directory for file logging (default:BACKUP_DIR/log)\n"
814+
msgid" directory for file logging (default:BACKUP_PATH/log)\n"
815815
msgstr""
816816

817817
#:src/help.c:361src/help.c:522src/help.c:589src/help.c:636src/help.c:716

‎src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static parray *setup_push_filelist(const char *archive_status_dir,
113113
* set archive_command to
114114
* 'pg_probackup archive-push -B /home/anastasia/backup --wal-file-name %f',
115115
* to move backups into arclog_path.
116-
* Where archlog_path is $BACKUP_DIR/wal/instance_name
116+
* Where archlog_path is $BACKUP_PATH/wal/instance_name
117117
*/
118118
void
119119
do_archive_push(InstanceState*instanceState,InstanceConfig*instance,char*pg_xlog_dir,
@@ -1126,7 +1126,7 @@ do_archive_get(InstanceState *instanceState, InstanceConfig *instance, const cha
11261126
join_path_components(absolute_wal_file_path,current_dir,wal_file_path);
11271127

11281128
/* full filepath to WAL file in archive directory.
1129-
* $BACKUP_DIR/wal/instance_name/000000010000000000000001 */
1129+
* $BACKUP_PATH/wal/instance_name/000000010000000000000001 */
11301130
join_path_components(backup_wal_file_path,instanceState->instance_wal_subdir_path,wal_file_name);
11311131

11321132
INSTR_TIME_SET_CURRENT(start_time);

‎src/catalog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ get_multi_timeline_parent(parray *backup_list, parray *tli_list,
14371437
}
14381438

14391439
/*
1440-
* Create backup directory in $BACKUP_DIR
1440+
* Create backup directory in $BACKUP_PATH
14411441
* (with proposed backup->backup_id)
14421442
* and initialize this directory.
14431443
* If creation of directory fails, then

‎src/help.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ help_backup(void)
372372
printf(_(" --error-log-filename=error-log-filename\n"));
373373
printf(_(" filename for error logging (default: none)\n"));
374374
printf(_(" --log-directory=log-directory\n"));
375-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
375+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
376376
printf(_(" --log-rotation-size=log-rotation-size\n"));
377377
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
378378
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -548,7 +548,7 @@ help_restore(void)
548548
printf(_(" --error-log-filename=error-log-filename\n"));
549549
printf(_(" filename for error logging (default: none)\n"));
550550
printf(_(" --log-directory=log-directory\n"));
551-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
551+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
552552
printf(_(" --log-rotation-size=log-rotation-size\n"));
553553
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
554554
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -621,7 +621,7 @@ help_validate(void)
621621
printf(_(" --error-log-filename=error-log-filename\n"));
622622
printf(_(" filename for error logging (default: none)\n"));
623623
printf(_(" --log-directory=log-directory\n"));
624-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
624+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
625625
printf(_(" --log-rotation-size=log-rotation-size\n"));
626626
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
627627
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -674,7 +674,7 @@ help_checkdb(void)
674674
printf(_(" --error-log-filename=error-log-filename\n"));
675675
printf(_(" filename for error logging (default: none)\n"));
676676
printf(_(" --log-directory=log-directory\n"));
677-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
677+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
678678
printf(_(" --log-rotation-size=log-rotation-size\n"));
679679
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
680680
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -760,7 +760,7 @@ help_delete(void)
760760
printf(_(" --error-log-filename=error-log-filename\n"));
761761
printf(_(" filename for error logging (default: none)\n"));
762762
printf(_(" --log-directory=log-directory\n"));
763-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
763+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
764764
printf(_(" --log-rotation-size=log-rotation-size\n"));
765765
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
766766
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -814,7 +814,7 @@ help_merge(void)
814814
printf(_(" --error-log-filename=error-log-filename\n"));
815815
printf(_(" filename for error logging (default: none)\n"));
816816
printf(_(" --log-directory=log-directory\n"));
817-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
817+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
818818
printf(_(" --log-rotation-size=log-rotation-size\n"));
819819
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
820820
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -890,7 +890,7 @@ help_set_config(void)
890890
printf(_(" --error-log-filename=error-log-filename\n"));
891891
printf(_(" filename for error logging (default: none)\n"));
892892
printf(_(" --log-directory=log-directory\n"));
893-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
893+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
894894
printf(_(" --log-rotation-size=log-rotation-size\n"));
895895
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
896896
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -1002,7 +1002,7 @@ help_add_instance(void)
10021002
printf(_(" --error-log-filename=error-log-filename\n"));
10031003
printf(_(" filename for error logging (default: none)\n"));
10041004
printf(_(" --log-directory=log-directory\n"));
1005-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
1005+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
10061006
printf(_(" --log-rotation-size=log-rotation-size\n"));
10071007
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
10081008
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -1072,7 +1072,7 @@ help_archive_push(void)
10721072
printf(_(" --error-log-filename=error-log-filename\n"));
10731073
printf(_(" filename for error logging (default: none)\n"));
10741074
printf(_(" --log-directory=log-directory\n"));
1075-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
1075+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
10761076
printf(_(" --log-rotation-size=log-rotation-size\n"));
10771077
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
10781078
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -1131,7 +1131,7 @@ help_archive_get(void)
11311131
printf(_(" --error-log-filename=error-log-filename\n"));
11321132
printf(_(" filename for error logging (default: none)\n"));
11331133
printf(_(" --log-directory=log-directory\n"));
1134-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
1134+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
11351135
printf(_(" --log-rotation-size=log-rotation-size\n"));
11361136
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
11371137
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));
@@ -1221,7 +1221,7 @@ help_catchup(void)
12211221
printf(_(" --error-log-filename=error-log-filename\n"));
12221222
printf(_(" filename for error logging (default: none)\n"));
12231223
printf(_(" --log-directory=log-directory\n"));
1224-
printf(_(" directory for file logging (default:BACKUP_DIR/log)\n"));
1224+
printf(_(" directory for file logging (default:BACKUP_PATH/log)\n"));
12251225
printf(_(" --log-rotation-size=log-rotation-size\n"));
12261226
printf(_(" rotate logfile if its size exceeds this value; 0 disables; (default: 0)\n"));
12271227
printf(_(" available units: 'kB', 'MB', 'GB', 'TB' (default: kB)\n"));

‎src/pg_probackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ main(int argc, char *argv[])
468468
if (backup_path==NULL)
469469
{
470470
/*
471-
* If command line argument is not set, try to readBACKUP_DIR
471+
* If command line argument is not set, try to readBACKUP_PATH
472472
* from environment variable
473473
*/
474-
backup_path=getenv("BACKUP_DIR");
474+
backup_path=getenv("BACKUP_PATH");
475475
}
476476

477477
if (backup_path!=NULL)
@@ -498,7 +498,7 @@ main(int argc, char *argv[])
498498
backup_subcmd!=CATCHUP_CMD)
499499
elog(ERROR,
500500
"No backup catalog path specified.\n"
501-
"Please specify it either using environment variableBACKUP_DIR or\n"
501+
"Please specify it either using environment variableBACKUP_PATH or\n"
502502
"command line option --backup-path (-B)");
503503

504504
/* ===== catalogState (END) ======*/

‎src/pg_probackup.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,13 +837,13 @@ typedef struct InstanceState
837837
CatalogState*catalog_state;
838838

839839
charinstance_name[MAXPGPATH];//previously global var instance_name
840-
/* $BACKUP_DIR/backups/instance_name */
840+
/* $BACKUP_PATH/backups/instance_name */
841841
charinstance_backup_subdir_path[MAXPGPATH];
842842

843-
/* $BACKUP_DIR/backups/instance_name/BACKUP_CATALOG_CONF_FILE */
843+
/* $BACKUP_PATH/backups/instance_name/BACKUP_CATALOG_CONF_FILE */
844844
charinstance_config_path[MAXPGPATH];
845-
846-
/* $BACKUP_DIR/backups/instance_name */
845+
846+
/* $BACKUP_PATH/backups/instance_name */
847847
charinstance_wal_subdir_path[MAXPGPATH];// previously global var arclog_path
848848

849849
/* TODO: Make it more specific */

‎src/pg_probackup_state.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
typedefstructCatalogState
1515
{
16-
/* $BACKUP_DIR */
16+
/* $BACKUP_PATH */
1717
charcatalog_path[MAXPGPATH];//previously global var backup_path
18-
/* $BACKUP_DIR/backups */
18+
/* $BACKUP_PATH/backups */
1919
charbackup_subdir_path[MAXPGPATH];
20-
/* $BACKUP_DIR/wal */
20+
/* $BACKUP_PATH/wal */
2121
charwal_subdir_path[MAXPGPATH];// previously global var arclog_path
2222
}CatalogState;
2323

‎tests/option_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_without_backup_path_3(self):
2525
exceptProbackupExceptionase:
2626
self.assertIn(
2727
'ERROR: No backup catalog path specified.\n'+ \
28-
'Please specify it either using environment variableBACKUP_DIR or\n'+ \
28+
'Please specify it either using environment variableBACKUP_PATH or\n'+ \
2929
'command line option --backup-path (-B)',
3030
e.message,
3131
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e.message),self.cmd))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp