@@ -47,9 +47,6 @@ static char *target_xid;
47
47
static char * target_inclusive ;
48
48
static TimeLineID target_tli ;
49
49
50
- /* show configuration */
51
- static bool show_all = false;
52
-
53
50
static void opt_backup_mode (pgut_option * opt ,const char * arg );
54
51
55
52
static pgut_option options []=
@@ -75,8 +72,6 @@ static pgut_option options[] =
75
72
{'s' ,4 ,"xid" ,& target_xid ,SOURCE_ENV },
76
73
{'s' ,5 ,"inclusive" ,& target_inclusive ,SOURCE_ENV },
77
74
{'u' ,6 ,"timeline" ,& target_tli ,SOURCE_ENV },
78
- /* catalog options */
79
- {'b' ,'a' ,"show-all" ,& show_all },
80
75
/* delete options */
81
76
{'b' ,12 ,"wal" ,& delete_wal },
82
77
{0 }
@@ -205,7 +200,7 @@ main(int argc, char *argv[])
205
200
return do_restore (backup_id ,target_time ,target_xid ,
206
201
target_inclusive ,target_tli );
207
202
else if (pg_strcasecmp (cmd ,"show" )== 0 )
208
- return do_show (backup_id , show_all );
203
+ return do_show (backup_id );
209
204
else if (pg_strcasecmp (cmd ,"validate" )== 0 )
210
205
return do_validate (backup_id );
211
206
else if (pg_strcasecmp (cmd ,"delete" )== 0 )
@@ -223,40 +218,40 @@ pgut_help(bool details)
223
218
{
224
219
printf (_ ("%s manage backup/recovery of PostgreSQL database.\n\n" ),PROGRAM_NAME );
225
220
printf (_ ("Usage:\n" ));
226
- printf (_ (" %sOPTION init\n" ),PROGRAM_NAME );
227
- printf (_ (" %sOPTION backup\n" ),PROGRAM_NAME );
228
- printf (_ (" %sOPTION restore\n" ),PROGRAM_NAME );
229
- printf (_ (" %sOPTION show [ID]\n" ),PROGRAM_NAME );
230
- printf (_ (" %sOPTION validate [ID]\n" ),PROGRAM_NAME );
231
- printf (_ (" %sOPTION delete ID\n" ),PROGRAM_NAME );
232
- printf (_ (" %sOPTION delwal [ID]\n" ),PROGRAM_NAME );
221
+ printf (_ (" %s[option...] init\n" ),PROGRAM_NAME );
222
+ printf (_ (" %s[option...] backup\n" ),PROGRAM_NAME );
223
+ printf (_ (" %s[option...] restore\n" ),PROGRAM_NAME );
224
+ printf (_ (" %s[option...] show [backup- ID]\n" ),PROGRAM_NAME );
225
+ printf (_ (" %s[option...] validate [backup- ID]\n" ),PROGRAM_NAME );
226
+ printf (_ (" %s[option...] deletebackup- ID\n" ),PROGRAM_NAME );
227
+ printf (_ (" %s[option...] delwal [backup- ID]\n" ),PROGRAM_NAME );
233
228
234
229
if (!details )
235
230
return ;
236
231
237
232
printf (_ ("\nCommon Options:\n" ));
238
- printf (_ (" -D, --pgdata=PATH location of the database storage area\n" ));
239
233
printf (_ (" -B, --backup-path=PATH location of the backup storage area\n" ));
234
+ printf (_ (" -D, --pgdata=PATH location of the database storage area\n" ));
240
235
/*printf(_(" -c, --check show what would have been done\n"));*/
241
- printf (_ (" -j, --threads=NUM num threads for backup and restore\n" ));
242
- printf (_ (" --progress show progress copy files\n" ));
243
236
printf (_ ("\nBackup options:\n" ));
244
- printf (_ (" -b, --backup-mode=MODE full,page,ptrack\n" ));
237
+ printf (_ (" -b, --backup-mode=MODEbackup mode ( full, page, ptrack) \n" ));
245
238
printf (_ (" -C, --smooth-checkpoint do smooth checkpoint before backup\n" ));
246
- printf (_ (" --stream use stream for save/restore WAL during backup\n" ));
239
+ printf (_ (" --streamstream the transaction log and include it in the backup\n" ));
247
240
/*printf(_(" --keep-data-generations=N keep GENERATION of full data backup\n"));
248
241
printf(_(" --keep-data-days=DAY keep enough data backup to recover to DAY days age\n"));*/
249
- printf (_ (" --backup-pg-log start backup pg_log directory\n" ));
250
242
printf (_ (" -S, --slot=SLOTNAME replication slot to use\n" ));
243
+ printf (_ (" --backup-pg-log backup of pg_log directory\n" ));
244
+ printf (_ (" -j, --threads=NUM number of parallel threads\n" ));
245
+ printf (_ (" --progress show progress\n" ));
251
246
printf (_ ("\nRestore options:\n" ));
252
- printf (_ (" --time time stamp up to which recovery will proceed\n" ));
253
- printf (_ (" --xid transaction ID up to which recovery will proceed\n" ));
254
- printf (_ (" --inclusive whether we stop just after the recovery target\n" ));
255
- printf (_ (" --timeline recovering into a particular timeline\n" ));
256
- printf (_ ("\nCatalog options: \n" ));
257
- printf (_ ("-a, --show-all showdeleted backup too \n" ));
247
+ printf (_ (" --time time stamp up to which recovery will proceed\n" ));
248
+ printf (_ (" --xid transaction ID up to which recovery will proceed\n" ));
249
+ printf (_ (" --inclusive whether we stop just after the recovery target\n" ));
250
+ printf (_ (" --timeline recovering into a particular timeline\n" ));
251
+ printf (_ (" -j, --threads=NUM number of parallel threads \n" ));
252
+ printf (_ (" --progress showprogress \n" ));
258
253
printf (_ ("\nDelete options:\n" ));
259
- printf (_ ("--wal remove unnecessary walarchives also \n" ));
254
+ printf (_ ("--wal remove unnecessary walfiles \n" ));
260
255
}
261
256
262
257
static void