@@ -2243,6 +2243,13 @@ BACKUP INSTANCE 'node'
2243
2243
<literal >MERGING</literal > — the backup is being merged.
2244
2244
</para >
2245
2245
</listitem >
2246
+ <listitem >
2247
+ <para >
2248
+ <literal >MERGED</literal > — the backup data files were
2249
+ successfully merged, but its metadata is in the process
2250
+ of been updated. Only full backup can have this status.
2251
+ </para >
2252
+ </listitem >
2246
2253
<listitem >
2247
2254
<para >
2248
2255
<literal >DELETING</literal > — the backup files are being deleted.
@@ -3147,7 +3154,9 @@ pg_probackup merge -B <replaceable>backup_dir</replaceable> --instance <replacea
3147
3154
<para >
3148
3155
This command merges the specified incremental backup to its
3149
3156
parent full backup, together with all incremental backups
3150
- between them. Once the merge is complete, the incremental
3157
+ between them. If the specified backup ID belong to the full backup,
3158
+ then it will be merged with the closest incremental backup.
3159
+ Once the merge is complete, the incremental
3151
3160
backups are removed as redundant. Thus, the merge operation is
3152
3161
virtually equivalent to retaking a full backup and removing all
3153
3162
the outdated backups, but it allows to save much time,
@@ -3166,7 +3175,8 @@ pg_probackup show -B <replaceable>backup_dir</replaceable> --instance <replaceab
3166
3175
</programlisting >
3167
3176
<para >
3168
3177
If the merge is still in progress, the backup status is
3169
- displayed as <literal >MERGING</literal >. The merge is idempotent, so you can
3178
+ displayed as <literal >MERGING</literal > or, at the final stage,
3179
+ <literal >MERGED</literal >. The merge is idempotent, so you can
3170
3180
restart the merge if it was interrupted.
3171
3181
</para >
3172
3182
</refsect2 >
@@ -3412,6 +3422,7 @@ pg_probackup backup -B <replaceable>backup_dir</replaceable> -b <replaceable>bac
3412
3422
[--no-validate] [--skip-block-validation]
3413
3423
[-w --no-password] [-W --password]
3414
3424
[--archive-timeout=<replaceable >timeout</replaceable >] [--external-dirs=<replaceable >external_directory_path</replaceable >]
3425
+ [--no-sync]
3415
3426
[<replaceable >connection_options</replaceable >] [<replaceable >compression_options</replaceable >] [<replaceable >remote_options</replaceable >]
3416
3427
[<replaceable >retention_options</replaceable >] [<replaceable >pinning_options</replaceable >] [<replaceable >logging_options</replaceable >]
3417
3428
</programlisting >
@@ -3564,6 +3575,18 @@ pg_probackup backup -B <replaceable>backup_dir</replaceable> -b <replaceable>bac
3564
3575
</para >
3565
3576
</listitem >
3566
3577
</varlistentry >
3578
+
3579
+ <varlistentry >
3580
+ <term ><option >--no-sync</option ></term >
3581
+ <listitem >
3582
+ <para >
3583
+ Do not sync backed up files to disk. You can use this flag to speed
3584
+ up backup process. Using this flag can result in data
3585
+ corruption in case of operating system or hardware crash.
3586
+ Corruption can be detected by backup validation.
3587
+ </para >
3588
+ </listitem >
3589
+ </varlistentry >
3567
3590
</variablelist >
3568
3591
</para >
3569
3592
@@ -3590,9 +3613,11 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3590
3613
[--help] [-D <replaceable >data_dir</replaceable >] [-i <replaceable >backup_id</replaceable >]
3591
3614
[-j <replaceable >num_threads</replaceable >] [--progress]
3592
3615
[-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--external-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable >] [--skip-external-dirs]
3593
- [-R | --restore-as-replica] [--no-validate] [--skip-block-validation] [--force]
3616
+ [-R | --restore-as-replica] [--no-validate] [--skip-block-validation]
3617
+ [--force] [--no-sync]
3594
3618
[--restore-command=<replaceable >cmdline</replaceable >]
3595
3619
[--primary-conninfo=<replaceable >primary_conninfo</replaceable >]
3620
+ [-S | --primary-slot-name=<replaceable >slotname</replaceable >]
3596
3621
[<replaceable >recovery_target_options</replaceable >] [<replaceable >logging_options</replaceable >] [<replaceable >remote_options</replaceable >]
3597
3622
[<replaceable >partial_restore_options</replaceable >] [<replaceable >remote_wal_archive_options</replaceable >]
3598
3623
</programlisting >
@@ -3637,14 +3662,27 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3637
3662
Sets the
3638
3663
<ulink url =" https://postgrespro.com/docs/postgresql/current/runtime-config-replication.html#GUC-PRIMARY-CONNINFO" >primary_conninfo</ulink >
3639
3664
parameter to the specified value.
3640
- This option will be ignored if used without the <option >-R</option > flag.
3665
+ This option will be ignored unless the <option >-R</option > flag if specified .
3641
3666
</para >
3642
3667
<para >
3643
3668
Example: <literal >--primary-conninfo='host=192.168.1.50 port=5432 user=foo password=foopass'</literal >
3644
3669
</para >
3645
3670
</listitem >
3646
3671
</varlistentry >
3647
3672
3673
+ <varlistentry >
3674
+ <term ><option >-S</option ></term >
3675
+ <term ><option >--primary-slot-name=<replaceable >slot_name</replaceable ></option ></term >
3676
+ <listitem >
3677
+ <para >
3678
+ Sets the
3679
+ <ulink url =" https://postgrespro.com/docs/postgresql/current/runtime-config-replication#GUC-PRIMARY-SLOT-NAME" >primary_slot_name</ulink >
3680
+ parameter to the specified value.
3681
+ This option will be ignored unless the <option >-R</option > flag if specified.
3682
+ </para >
3683
+ </listitem >
3684
+ </varlistentry >
3685
+
3648
3686
<varlistentry >
3649
3687
<term ><option >-T <replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
3650
3688
<term ><option >--tablespace-mapping=<replaceable >OLDDIR</replaceable >=<replaceable >NEWDIR</replaceable ></option ></term >
@@ -3729,6 +3767,17 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3729
3767
</para >
3730
3768
</listitem >
3731
3769
</varlistentry >
3770
+
3771
+ <varlistentry >
3772
+ <term ><option >--no-sync</option ></term >
3773
+ <listitem >
3774
+ <para >
3775
+ Do not sync restored files to disk. You can use this flag to speed
3776
+ up restore process. Using this flag can result in data
3777
+ corruption in case of operating system or hardware crash.
3778
+ </para >
3779
+ </listitem >
3780
+ </varlistentry >
3732
3781
</variablelist >
3733
3782
</para >
3734
3783
<para >
@@ -3855,7 +3904,9 @@ pg_probackup merge -B <replaceable>backup_dir</replaceable> --instance <replacea
3855
3904
<para >
3856
3905
Merges the specified incremental backup to its parent full
3857
3906
backup, together with all incremental backups between them, if
3858
- any. As a result, the full backup takes in all the merged
3907
+ any. If the specified backup ID belong to the full backup,
3908
+ then it will be merged with the closest incremental backup.
3909
+ As a result, the full backup takes in all the merged
3859
3910
data, and the incremental backups are removed as redundant.
3860
3911
</para >
3861
3912
<para >
0 commit comments