Migração nextcloud

I’m migrating my raspberry pi 4 4gb arm hardware,
for a beelink mini pc u59 pro 16 gb x86.
I wanted to know how do I backup nextcloud?

it’s not really official but there is a script available that could be used to perform such a migration.

sorry I want more details,

  1. Can I run this script anywhere in Dietpi?
  2. where are the files saved so I can put them on my new hardware
    3)When restoring the backup, do I have to manually place the files in each directory?

you can run it from everywhere and all is explained within the script at the end