Which Nextcloud parts must I back up, and can I exclude the data directory from Borg and back it up with restic instead?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Hello,

I recently upgraded my server with new HDDs, LAN, etc. One reason for the upgrade was to implement a 3-2-1 backup for my personal stuff (e.g., Nextcloud, Immich).

My setup currently looks like this:

  • SSD: core operating system, Docker configs, compose, logs
  • HDD1: data of Docker containers
  • HDD2: backup of HDD1 via restic
  • HDD3: backup of HDD1 via restic
  • HDD4: offsite backup of HDD1

My Nextcloud instance is using server-side encryption. What do I actually need to store on HDD1 besides my data to, in the worst-case scenario, restore all my files and data?

I know that Nextcloud AIO offers the option to use the inbuilt backup solution with Borg. Because of my setup and the fact that I need the additional space on the new HDD for my data, I can’t just point the Borg backup to the new drive — that would consume the new storage space. I’ve seen that you can exclude certain directories. Would it be possible to exclude the Nextcloud data directory but still run a Borg backup, so I would have the compressed Borg archive and then have that archive backed up again by restic?

TL;DR:

  • What things do I need to back up?
  • Is it possible/advisable to exclude the Nextcloud data directory and do a “double backup” (Borg backup that is then backed up by restic)?

I’m open to any solutions, thx :slight_smile:

Hi, I’d suggest to use AIOs built-in borg backup solution. This will include all necessary data to restore the complete instance.


Regarding excluding the datadir, 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.

1 Like

Wow! Thanks for the fast reply :slight_smile:
Will do that, thanks.

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