parser=argparse.ArgumentParser(description='tool to synchronize ceph rbd images between two clusters, using ssh',usage='python3 main.py --source username@server:rbd/image_name --destination rbd_backup/backup_test_destination')
@@ -9,7 +17,7 @@ parser.add_argument('-s', '--source', action="store", dest='source', help='the s
parser.add_argument('-w','--whole-object',action="store_true",dest='wholeObject',help='do not diff for intra-object deltas. Dramatically improves diff performance but may result in larger delta backup',required=False,default=True)
parser.add_argument('-healty','--wait-until-healthy',action="store_true",dest='waitHealthy',help='wait until cluster is healthy',required=False,default=True)
parser.add_argument('-healthy','--wait-until-healthy',action="store_true",dest='waitHealthy',help='wait until cluster is healthy',required=False,default=True)
parser.add_argument('-no-scrub','--no-scrubbing',action="store_true",dest='noScrubbing',help='wait for scrubbing to finnish and disable scrubbing (does re-enable scrubbing automatically). This implies --wait-until-healthy',required=False,default=False)
logMessage(bcolors.OKGREEN+'Done with '+cephRbdObjectToPath(source)+' -> '+cephRbdObjectToPath(destination)+bcolors.ENDC,LOGLEVEL_INFO)
log_message(BackgroundColors.OKGREEN+'Done with '+ceph_rbd_object_to_path(source)+' -> '+ceph_rbd_object_to_path(destination)+BackgroundColors.ENDC,LOGLEVEL_INFO)