Identification of a Japanese Sword

Hello and thank you in advance for helping. I have inherited this Japanese Sword and would like to know more about the type and date. Maybe somebody can identify the calligraphy? Attached a picture.
With best regards, berma

AttachmentSize
1p1230207kl.jpg454.09 KB