Backup problem from NC NAS

Good morning,
We have a Nexcloud on the VM (Esx 8.0 U2), to which a NAS server (TRUENAS Core on physical server) is connected for storing users datas (NFS). The NC and TrueNAS versions are old and I don’t have control of Nextcloud at the moment.
I would like to make a backup of this datas. I use Veeam Backup and Replication as backup tools, and would like to go through the “file share NFS” system on Veeam directly from the NAS.
So, during my tests I had failures to access directories on the NAS, then after the third try, the backup was launched, but a problem accessing files from NextCloud appeared.
Does NextCloud provide exclusive access to NAS storage? This is what seems to me to do.
How to save this share without using the NC VM? What is the best practice to backup datas ?
I did not find an equivalence to my request on the forums, NC, Veeam or TrueNAS.

Unfortunately, I didn’t quite understand your problem. For the sake of simplicity, I will assume that you are talking about primary storage with regard to the user data in Nextcloud. Please take a look at the following line in config.php:

'datadirectory' => '/var/www/nextcloud/data',

How is this mounted? Via NFS? You should also be able to back up this data from NFS. If not, post the directory, how exactly it is mounted, error message etc.

Remember that this is only the data. The exact data is under /var/www/nextcloud/data/<username>/files or there are also group folders elsewhere.

Also bear in mind that Nextcloud manages information about these folders and files in its database, e.g. shares etc. When restoring, you must make this known to the system (occ files:scan --all) or restore the database (same Nextcloud version). The first command would cause shares to be lost, the second would not.

If you want to keep your Nextcloud complete, you must upgrade to the current version. Either still on the old hardware or you have to start with exactly the same old version on the new hardware.

Thanks for quick awnsers,

Yes, the mount from NAS is done in NFS. I don’t have access to the nextcloud VM at the moment. My goal is to use NFS share to backup datas with Veeam. The database and Nextcloud are VMs hosted on Esxi. Its are backed up by the Veeam/Vmware process.
The Veeam error message during backups is: "07/15/2024 08:05:10 :: Processing ipNAS:/mnt/vol-cloud Error: Agent: Failed to process method {NasMaster.CreateBackupProcessor}: Share isn’ t accessible. Path: [nfs3://ipNAS:/mnt/vol-cloud]. Exc: [WSASend failed, error code 10054 "
And when Veeam connected to the NAS to start backup, NextCloud users no longer had access to the files.

David