Sync NextCloud with Google Drive

I would like to have a copy of my data in both Google Cloud (online) as well as NextCloud (offline).

So I have a local folder on my MAC that syncs with Google Drive. To have an offline copy, I would also like to use that same folder to sync with my NextCloud. As far as my initial tests go, this should be possible as Nextcloud offers the option to keep the local data (and not erase the folder).

I’m trying to assess the risks of this approach. For instance, if I delete (accidentally) a folder on my local folder (or on Google Drive cloud account), it will eventually also be deleted on the NextCloud.

My question is: is there a versioning mechanism of some kind on NextCloud that will help me recover the folder in case accidentally delete some files or folder?

Yes, the “deleted files app”