What should I back up (Nextcloud on SSD disk on Raspberry Pi

Hi,

I have Nextcloud running on my Raspberry Pi 4, I moved NextCloud and it’s database to an external usb ssd disk.
That disk is backed up with BorgBase.
What files of the Raspberry Pi should I back up? For when the SD-card would get corrupted for instance.
Is it a few files or directories, or would that be to much to only select a few things, is it better to back up the whole SD card?

I guess the OS still has to point to the nextcloud data, but also what about apache, caddy, redis, …

What’s the best way to recover if my card crashes?


  • Nextcloud Server version (e.g., 29.x.x):
  • 30.0.5
    
  • Operating system and version (e.g., Ubuntu 24.04):
  • Raspberry OS 12 Bookworm
    
  • Web server and version (e.g, Apache 2.4.25):
  • 2.4.62
    
  • PHP version (e.g, 8.3):
  • 8.3
    
  • MariaDB version:
  • 10.11.6
    
  • Caddy version:
  • 2.6.2 (using config file, no JSON)
    
  • Redis-server version
  • 7.0.15
    

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/backup.html