Common ways to sync Obsidian are through cloud tools (Google Drive, OneDrive, etc.), SyncThing Fork or Git.
I'd recommend you to look into SyncThing Fork or a similar tool if you never want your notes to leave your own server.
I wrote about ways to sync Obsidian here: https://bryanhogan.com/blog/how-to-sync-obsidian