@@ -52,28 +52,28 @@ static void opt_backup_mode(pgut_option *opt, const char *arg);
5252static pgut_option options []=
5353{
5454/* directory options */
55- {'s' ,'D' ,"pgdata" ,& pgdata ,SOURCE_ENV },
56- {'s' ,'B' ,"backup-path" ,& backup_path ,SOURCE_ENV },
55+ {'s' ,'D' ,"pgdata" ,& pgdata ,SOURCE_ENV },
56+ {'s' ,'B' ,"backup-path" ,& backup_path ,SOURCE_ENV },
5757/* common options */
58- /*{ 'b', 'c', "check",&check },*/
59- {'i' ,'j' ,"threads" ,& num_threads },
60- {'b' ,8 ,"stream" ,& stream_wal },
61- {'b' ,11 ,"progress" ,& progress },
58+ /*{ 'b', 'c', "check", &check },*/
59+ {'i' ,'j' ,"threads" ,& num_threads },
60+ {'b' ,8 ,"stream" ,& stream_wal },
61+ {'b' ,11 ,"progress" ,& progress },
6262/* backup options */
6363{'b' ,10 ,"backup-pg-log" ,& backup_logs },
6464{'f' ,'b' ,"backup-mode" ,opt_backup_mode ,SOURCE_ENV },
6565{'b' ,'C' ,"smooth-checkpoint" ,& smooth_checkpoint ,SOURCE_ENV },
66- {'s' ,'S' ,"slot" ,& replication_slot ,SOURCE_ENV },
66+ {'s' ,'S' ,"slot" ,& replication_slot ,SOURCE_CMDLINE },
6767/* options with only long name (keep-xxx) */
6868/*{ 'i', 1, "keep-data-generations", &keep_data_generations, SOURCE_ENV },
6969{ 'i', 2, "keep-data-days",&keep_data_days,SOURCE_ENV },*/
7070/* restore options */
71- {'s' ,3 ,"time" ,& target_time ,SOURCE_ENV },
72- {'s' ,4 ,"xid" ,& target_xid ,SOURCE_ENV },
73- {'s' ,5 ,"inclusive" ,& target_inclusive ,SOURCE_ENV },
74- {'u' ,6 ,"timeline" ,& target_tli ,SOURCE_ENV },
71+ {'s' ,3 ,"time" ,& target_time ,SOURCE_CMDLINE },
72+ {'s' ,4 ,"xid" ,& target_xid ,SOURCE_CMDLINE },
73+ {'s' ,5 ,"inclusive" ,& target_inclusive ,SOURCE_CMDLINE },
74+ {'u' ,6 ,"timeline" ,& target_tli ,SOURCE_CMDLINE },
7575/* delete options */
76- {'b' ,12 ,"wal" ,& delete_wal },
76+ {'b' ,12 ,"wal" ,& delete_wal },
7777{0 }
7878};
7979