The movies are based on the true story of a Japanese Akita who waited for his master at the train station for nine years. It's quite a touching story.
https://en.wikipedia.org/wiki/Hachik%C5%8DIn Australia, there's a famous poem and song about a dog that guards its master's tuckerbox in a town called Gundagai. The poem was written in the 1800's, and a statue of the fictitious dog was created in the 1930's. Hachiko, however, was real.
https://en.wikipedia.org/wiki/Dog_on_the_Tuckerbox