If restoring a backup through the application in the standard way fails, you can use the API interface instead.
The restore is performed by sending a request to the server:
PUT /c/db_nazev/restore?name=Firma
the
nameparameter is optional (the name of the company being restored)the request body must contain the backup file
the
Content-Typeheader must be:application/x-winstrom-backupor alternatively
application/octet-stream
Things to watch out for:
the company you are restoring must not already exist
otherwise the server will return an error: Company already exists
if you use invalid characters in the company name, the system will automatically adjust the name
This is partly because a so-called company identifier is always generated from the company name. This identifier must be unique for each company.
For more information on restoring a backup via the REST API, please refer to our documentation.
