Nc-import-ncp export file does not exist

I’m trying to recreate an existing nextcloudpi server on another machine. I want to import the settings to begin, so I copied the saved nc-config_xxx.tar on a drive accessible for the new machine , and launched nc-import-ncp.
The file path I gave is correct (I read path exists in green) but the command doesn’t succeed

[ nc-import-ncp ] (Tue Jun 23 17:24:43 UTC 2026)
export file does not exist

What does it mean? I don’t understand what the export file refers to? The import file? Another file?

Hi Fred2,

i looked into the source code
https://github.com/nextcloud/nextcloudpi/blob/master/bin/ncp/BACKUPS/nc-import-ncp.sh

to understand the message little bit better.

  [[ -f "$FILE" ]] || { echo "export file $FILE does not exist"; return 1; }

Answer to your question: The Error message refers to the file that

  • has been exported some time earlier using nc-export-ncp
  • is about being imported now

Looking at your errormessage, it seems that $FILE has not been provided