@@ -52,28 +52,28 @@ static void opt_backup_mode(pgut_option *opt, const char *arg);
52
52
static pgut_option options [] =
53
53
{
54
54
/* 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 },
57
57
/* 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 },
62
62
/* backup options */
63
63
{ 'b' , 10 , "backup-pg-log" , & backup_logs },
64
64
{ 'f' , 'b' , "backup-mode" , opt_backup_mode , SOURCE_ENV },
65
65
{ 'b' , 'C' , "smooth-checkpoint" , & smooth_checkpoint , SOURCE_ENV },
66
- { 's' , 'S' , "slot" , & replication_slot , SOURCE_ENV },
66
+ { 's' , 'S' , "slot" , & replication_slot , SOURCE_CMDLINE },
67
67
/* options with only long name (keep-xxx) */
68
68
/* { 'i', 1, "keep-data-generations", &keep_data_generations, SOURCE_ENV },
69
69
{ 'i', 2, "keep-data-days", &keep_data_days, SOURCE_ENV },*/
70
70
/* 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 },
75
75
/* delete options */
76
- { 'b' , 12 , "wal" , & delete_wal },
76
+ { 'b' , 12 , "wal" , & delete_wal },
77
77
{ 0 }
78
78
};
79
79
0 commit comments