How does Obsidian work? Is it an app/client only which has its data local?
However, you can choose to backup and sync your workspace across multiple devices using a cloud service. The most pain-free way to do this is by buying a subscription to Obsidian Vault. This is also a good way to support the development team, since the main product is free. When you store your workspace on Obsidian Vault, you can choose to specify an encryption key, so that theoretically nobody at Obsidian should be able to read your data.
But there's nothing stopping you from using other cloud storage services. There's even a community plugin you can find to use a Git repo for storage.