Data File Locked

Hello. All.

Hoping someone can help me. I am running Nextcloud V17. On a desktop Server ssd for main drive and I have moved the data files for next cloud to a 1Tb hard drive. I have a network storage drive netgear NAS I want to create a backup of nextcloud files to the NAS.

The data file for nextcloud is locked and requires the admin password to access. So coping the file directly to the NAS isn’t possable, I want to use a program called file sync it monitors the data file for changes and then copies to the NAS directly.

Any ideas on how to unlock the data file.