diff --git a/fdbbackup/backup.cpp b/fdbbackup/backup.cpp index 0c24028f33a..2748c7be89a 100644 --- a/fdbbackup/backup.cpp +++ b/fdbbackup/backup.cpp @@ -1097,6 +1097,9 @@ static void printBackupUsage(bool devhelp) { " For start or modify operations, specifies the backup's default target snapshot interval " "as DURATION seconds. Defaults to %d for start operations.\n", CLIENT_KNOBS->BACKUP_DEFAULT_SNAPSHOT_INTERVAL_SEC); + printf(" --initial-snapshot-interval DURATION\n" + " For start operations, specifies the duration of the first inconsistent snapshot as DURATION " + "seconds. Defaults to 0, meaning as fast as possible.\n"); printf(" --mode MODE Snapshot mechanism to use: bulkdump, rangefile (default, legacy), or both.\n" " bulkdump: Uses BulkDump SST files for faster restore performance\n" " rangefile: Traditional range files for backward compatibility\n" diff --git a/tests/argument_parsing/test_argument_parsing.py b/tests/argument_parsing/test_argument_parsing.py index 33d82c31ee2..fa38e6f7d86 100755 --- a/tests/argument_parsing/test_argument_parsing.py +++ b/tests/argument_parsing/test_argument_parsing.py @@ -99,6 +99,12 @@ def test_fdbbackup(build_dir): check(not is_unknown_knob(run_command(command, ["--knob_min_trace_severity", "5"]))) check(not is_unknown_knob(run_command(command, ["--knob_min-trace-severity", "5"]))) + start_command = [args.build_dir + "/bin/fdbbackup", "start"] + check( + "--initial-snapshot-interval DURATION" + in run_command(start_command, ["--help"]) + ) + if __name__ == "__main__": parser = argparse.ArgumentParser(