How to properly back up and what exactly needs to be backed up to restore data on a fresh Nextcloud installation

Hi all.

I hope someone can explain to me how to make a backup correctly.

System Truenas Scale, with multiple datasets. The directory from Truenas is mounted for user data.

Nextcloud is installed on a virtual machine, which means its data is not in the Truenas dataset.

Also, all users are registered in authentik, and the login page is used by authentik. OpenID is configured for login and registration.

Now to the question: how do I properly back up everything needed for Nextcloud so that I can both simply restore the data and, for example, link the database and user data in a new installation?

I’d be grateful if anyone could share their experience with this.

Thx

More info is needed:

What database engine used and version? i.e. MariaDB…MySQL
What do you mean by “link the database and user data” ? To another VM or simply copy back?

What kind of virtual machine? Where are Nextcloud-Data?

Nextcloud_aio latest use postgres db.

I have Truenas Scale installed on my virtual machine. I created a dataset for user data. This dataset is mounted in Nextcloud via nfs.

This means that all Nextcloud containers are located on a single virtual machine, and user data is stored in the Truenas dataset.

Hi, Nextcloud AIO comes with its own backup solution. It is easiest to use that for migration purposes. See GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance. for example.

1 Like

Am I correct in understanding that with the help of Borg there shouldn’t be any problems with authentik?

Please explain the question, it’s not really clear why/how you expect problem with both applications.

for general advice related to backup see 101: backup what and why (not how)

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.