Skip to main content

How to restore a data backup on the server if it fails?

Restoring a Company from a Backup Using the API When In-App Restore Fails

Written by Petr Pech

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 name parameter is optional (the name of the company being restored)

  • the request body must contain the backup file

  • the Content-Type header must be:

    • application/x-winstrom-backup

    • or 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.

Did this answer your question?