@@ -106,7 +106,8 @@ help_pg_probackup(void)
106106 printf (_ (" [--help]\n" ));
107107
108108 printf (_ ("\n %s set-backup -B backup-path --instance=instance_name\n" ), PROGRAM_NAME );
109- printf (_ (" -i backup-id [--ttl] [--expire-time]\n" ));
109+ printf (_ (" -i backup-id [--ttl=interval] [--expire-time=timestamp]\n" ));
110+ printf (_ (" [--note=text]\n" ));
110111 printf (_ (" [--help]\n" ));
111112
112113 printf (_ ("\n %s show-config -B backup-path --instance=instance_name\n" ), PROGRAM_NAME );
@@ -140,7 +141,7 @@ help_pg_probackup(void)
140141 printf (_ (" [--remote-proto] [--remote-host]\n" ));
141142 printf (_ (" [--remote-port] [--remote-path] [--remote-user]\n" ));
142143 printf (_ (" [--ssh-options]\n" ));
143- printf (_ (" [--ttl] [--expire-time]\n" ));
144+ printf (_ (" [--ttl=interval ] [--expire-time=timestamp] [--note=text ]\n" ));
144145 printf (_ (" [--help]\n" ));
145146
146147
@@ -285,7 +286,7 @@ help_backup(void)
285286 printf (_ (" [--remote-proto] [--remote-host]\n" ));
286287 printf (_ (" [--remote-port] [--remote-path] [--remote-user]\n" ));
287288 printf (_ (" [--ssh-options]\n" ));
288- printf (_ (" [--ttl] [--expire-time]\n\n" ));
289+ printf (_ (" [--ttl=interval ] [--expire-time=timestamp] [--note=text ]\n\n" ));
289290
290291 printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
291292 printf (_ (" -b, --backup-mode=backup-mode backup mode=FULL|PAGE|DELTA|PTRACK\n" ));
@@ -304,6 +305,8 @@ help_backup(void)
304305 printf (_ (" backup some directories not from pgdata \n" ));
305306 printf (_ (" (example: --external-dirs=/tmp/dir1:/tmp/dir2)\n" ));
306307 printf (_ (" --no-sync do not sync backed up files to disk\n" ));
308+ printf (_ (" --note=text add note to backup\n" ));
309+ printf (_ (" (example: --note='backup before app update to v13.1')\n" ));
307310
308311 printf (_ ("\n Logging options:\n" ));
309312 printf (_ (" --log-level-console=log-level-console\n" ));
@@ -341,8 +344,9 @@ help_backup(void)
341344 printf (_ (" --dry-run perform a trial run without any changes\n" ));
342345
343346 printf (_ ("\n Pinning options:\n" ));
344- printf (_ (" --ttl=ttl pin backup for specified amount of time; 0 unpin\n" ));
347+ printf (_ (" --ttl=interval pin backup for specified amount of time; 0 unpin\n" ));
345348 printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: s)\n" ));
349+ printf (_ (" (example: --ttl=20d)\n" ));
346350 printf (_ (" --expire-time=time pin backup until specified time stamp\n" ));
347351 printf (_ (" (example: --expire-time='2024-01-01 00:00:00+03')\n" ));
348352
@@ -710,12 +714,15 @@ help_set_backup(void)
710714{
711715 printf (_ ("\n%s set-backup -B backup-path --instance=instance_name\n" ), PROGRAM_NAME );
712716 printf (_ (" -i backup-id\n" ));
713- printf (_ (" [--ttl] [--expire-time]\n\n" ));
717+ printf (_ (" [--ttl=interval ] [--expire-time=time] [--note=text ]\n\n" ));
714718
715- printf (_ (" --ttl=ttl pin backup for specified amount of time; 0 unpin\n" ));
719+ printf (_ (" --ttl=interval pin backup for specified amount of time; 0 unpin\n" ));
716720 printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: s)\n" ));
721+ printf (_ (" (example: --ttl=20d)\n" ));
717722 printf (_ (" --expire-time=time pin backup until specified time stamp\n" ));
718723 printf (_ (" (example: --expire-time='2024-01-01 00:00:00+03')\n" ));
724+ printf (_ (" --note=text add note to backup; 'none' to remove note\n" ));
725+ printf (_ (" (example: --note='backup before app update to v13.1')\n" ));
719726}
720727
721728static void
0 commit comments