Backing up & restoring shares

Hello,

our NC instance (32.0.2) relies on a central storage system connected over SMB using the external storage app. Unfortunately, this system is prone to connectivity issues that make it periodically unavailable for a minute or so. This is usually not a big issue since it fixes itself in a few seconds by reloading the page. However, when the storage is unavailable for several minutes, Nextcloud seems to delete all the shares pointing to it. This is a major PITA due to the number of shares and users annoyed by it.

What would be the easiest way to make a backup of (only) these shares that I can restore next time this happens without messing up the rest of the database?

I would really appreciate some advice.

Thank you.

This does not answer your question directly , and I’m sure you know this already… but the real issue to fix primary is the connectivity dropping out to your SMB share.

You could loose or corrupt data on the file system and create a discrepancy between your share and database.

Backup your database regularly and take backups of your SMB share as local to the SMB server as possible, even to a USB drive if needs be.