Change Nextcloud data directory to exFAT ssd in Raspberry Pi 5

Hello, I have hosted nextcloud server successfully in raspberry pi using umbrel. But I cant able to change data directory to external SSD.

Umbrel is installed on 128GB SD Card.

I have mounted the 2TB SSD to exFAT partion /media/nextcloud & I want to store nextcloud data to this directory.

Any help would be appreciated.

The quick and easy: 1. rename the current data dir to <some_dir_backup> and 2. Soft link(ln -s full_path_to_source_dir full_path_to_destination_dir) the ssd directory to that directory you just renamed.