Backing up via terminal

Has backing up via terminal changed from the following?:

pihole -a -t

Thank you

Yes.

The correct Pi-hole v6 command is:

pihole-FTL --teleporter

Thank you rdwebdesign

I just tried that and got the following:

Failed to attach database "/etc/pihole/pihole-FTL.db" to in-memory database: file is not a database
Failed to create Teleporter ZIP file: Failed to create FTL database for heap ZIP archive

I’m attempting to back up my pihole install along with all settings and block lists etc.

I still get this error after trying again, I added sudo before the command and logged in as root and tried navigating to a folder within home in case it was a permission issue.

Is it failing even if you try with sudo?

sudo pihole-FTL --teleporter

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

sudo pihole -d

Yes

Then, please generate a debug log, as requested.