Start by searching for how to selfhost a photo storage backup. There are multiple ways to do it and the decision depends on your circumstances and preferences, which only you know.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments