Nextcloud doesn’t sync in the background iirc, but there are 3rd party apps you can use that will. It’s great other than that.
I am not sure if syncthing syncs in the background or not, but worth testing. Nextcloud is probably the more complete package but it depends on if you need or want anything of its other features.