MCPcopy Create free account
hub / github.com/epcdiy/timemachineplus / main

Method main

src/main/java/serviceRun.java:438–468  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

436 }
437
438 public static void main(String[] args)
439 {
440 serviceRun serviceRun=new serviceRun();
441 try {
442 serviceRun.init();
443 serviceRun.loadBackupRoot();
444 if(args.length==1)
445 {
446 if(args[0].equals("checkdata"))
447 {
448 logger.info("begin to checkdata");
449 serviceRun.checkdata(false);
450 }
451 else if(args[0].equals("checkdatawithhash"))
452 {
453 logger.info("begin to checkdata with hash");
454 serviceRun.checkdata(true);
455 }
456 else {
457 logger.info("cleaning data from backuprootid:" + args[0]);
458 serviceRun.deleteByBackuprootid(Long.parseLong(args[0]));
459 return;
460 }
461 }
462 serviceRun.XCopy();
463 }
464 catch (Exception e)
465 {
466 e.printStackTrace();
467 }
468 }
469
470}

Callers

nothing calls this directly

Calls 5

initMethod · 0.95
loadBackupRootMethod · 0.95
checkdataMethod · 0.95
deleteByBackuprootidMethod · 0.95
XCopyMethod · 0.95

Tested by

no test coverage detected