We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac98fef commit 6832cbbCopy full SHA for 6832cbb
src/restore.c
@@ -787,6 +787,14 @@ create_recovery_conf(time_t backup_id,
787
788
fprintf(fp, "# recovery.conf generated by pg_probackup %s\n",
789
PROGRAM_VERSION);
790
+#ifdef WIN32
791
+ char *p1 = backup_path;
792
+ while (*p1){
793
+ if ((*p1) == '\\')
794
+ *p1 = '/';
795
+ p1++;
796
+ }
797
+#endif
798
fprintf(fp, "restore_command = '%s archive-get -B %s --instance %s --wal-file-path %%p --wal-file-name %%f'\n",
799
PROGRAM_NAME, backup_path, instance_name);
800
fprintf(fp, "recovery_target_action = 'promote'\n");
0 commit comments