@@ -450,23 +450,37 @@ int main(int argc, char* argv[]) {
450450 if (dingodb::FLAGS_show_version || argc == 1 ) {
451451 dingodb::DingoShowVerion ();
452452 printf (
453- " Usage: --br_coor_url=[ip:port] --br_type=[backup|restore ] --br_backup_type=[full] --backupts='[YYYY-MM-DD "
453+ " Usage: --br_coor_url=[ip:port] --br_type=[backup] --br_backup_type=[full] --backupts='[YYYY-MM-DD "
454454 " HH:MM:SS ]' --storage=local://[path_dir]\n " );
455455 printf (
456- " Usage: --br_coor_url=[file://./conf/coor_list] --br_type=[backup|restore ] --br_backup_type=[full] "
456+ " Usage: --br_coor_url=[file://./conf/coor_list] --br_type=[backup] --br_backup_type=[full] "
457457 " --backupts='[YYYY-MM-DD "
458458 " HH:MM:SS ]' --storage=local://[path_dir]\n " );
459+
460+ printf (
461+ " Usage: --br_coor_url=[ip:port] --br_type=[restore] --br_restore_type=[full] "
462+ " --storage=local://[path_dir]\n " );
463+ printf (
464+ " Usage: --br_coor_url=[file://./conf/coor_list] --br_type=[restore] --br_restore_type=[full] "
465+ " --storage=local://[path_dir]\n " );
459466 printf (" Example: \n " );
460467 printf (
461468 " ./dingodb_br --br_coor_url=127.0.0.1:22001 --br_type=backup --br_backup_type=full --backupts='2020-01-01 "
462469 " 00:00:00 +08:00' "
463470 " --storage=local:///opt/backup-2020-01-01\n " );
464471
465472 printf (
466- " ./dingodb_br --br_coor_url=[ file://./conf/coor_list] --br_type=backup --br_backup_type=full "
473+ " ./dingodb_br --br_coor_url=file://./conf/coor_list --br_type=backup --br_backup_type=full "
467474 " --backupts='2020-01-01 "
468475 " 00:00:00 +08:00' "
469476 " --storage=local:///opt/backup-2020-01-01\n " );
477+ printf (
478+ " ./dingodb_br --br_coor_url=127.0.0.1:22001 --br_type=restore --br_restore_type=full "
479+ " --storage=local:///opt/backup-2020-01-01\n " );
480+
481+ printf (
482+ " ./dingodb_br --br_coor_url=file://./conf/coor_list --br_type=restore --br_restore_type=full "
483+ " --storage=local:///opt/backup-2020-01-01\n " );
470484 exit (-1 );
471485 }
472486
@@ -485,8 +499,8 @@ int main(int argc, char* argv[]) {
485499 butil::Status status;
486500 std::shared_ptr<br::ServerInteraction> coordinator_interaction = std::make_shared<br::ServerInteraction>();
487501 if (br::FLAGS_br_coor_url.empty ()) {
488- DINGO_LOG (WARNING) << " coordinator url is empty, try to use file://./coor_list" ;
489- br::FLAGS_br_coor_url = " file://./coor_list" ;
502+ DINGO_LOG (WARNING) << " coordinator url is empty, try to use file://.conf /coor_list" ;
503+ br::FLAGS_br_coor_url = " file://./conf/ coor_list" ;
490504
491505 std::string path = br::FLAGS_br_coor_url;
492506 path = path.replace (path.find (" file://" ), 7 , " " );
0 commit comments