Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0fa7217

Browse files
committed
correct binary name for restore_command in recovery.conf
1 parent 43e18ca commit 0fa7217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/restore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ create_recovery_conf(time_t backup_id,
773773

774774
fprintf(fp, "# recovery.conf generated by pg_probackup %s\n",
775775
PROGRAM_VERSION);
776-
fprintf(fp, "restore_command = 'pg_probackup archive-get -B %s --instance %s --wal-file-path %%p --wal-file-name %%f'\n",
777-
backup_path, instance_name);
776+
fprintf(fp, "restore_command = '%s archive-get -B %s --instance %s --wal-file-path %%p --wal-file-name %%f'\n",
777+
PROGRAM_NAME, backup_path, instance_name);
778778
fprintf(fp, "recovery_target_action = 'promote'\n");
779779

780780
if (target_time)

0 commit comments

Comments
 (0)