Skip to main content

Automatic Company Backup on the Server

How to Automatically Back Up Company Data on Your Own Server

Written by Petr Pech

In addition to manually backing up the currently used company, which users are reminded of when finishing work with a billed company, ABRA Flexi also supports automatic database backups. This form of backup uses a standard database feature. A prerequisite for using automatic backups is running the ABRA Flexi system on your own server (however, even when running in the cloud, it is possible to obtain backups via the REST API).

We recommend automatic backups as a solution that does not rely on the diligence of a designated employee, while also saving valuable time for key personnel authorized to obtain a company backup.


✅ When to use automatic backups

  • you want to back up at regular intervals

  • you need to back up frequently, e.g. multiple times a day

  • you need to back up a large number of companies (typically an accounting firm)

Because each client's requirements for backup times and frequencies are unique, we leave it up to you to define the schedule and ensure that backups are triggered according to your chosen timetable.


🖥️ Installing the script on the server

📌 Microsoft Windows​

The backup script zaloha_databaze.bat can be found in the application directory, in the folder service, i.e.:

%SystemDrive%\Program Files (x86)\WinStrom\service\ %SystemDrive%\Program Files\WinStrom\service\

For this version of the script, you need to set the backup directory directly in the file zaloha_databaze.bat. Specifically, this refers to the following line:

set BACKUPDIR=C:\winstrom-backup

⚠️ Warning: The file will be overwritten when the application is updated.

🐧 Linux​

On Linux, the script flexi-backup can be found in the following directory:

/usr/share/flexi/bin/

The directory for storing the created backups is passed as a parameter, for example:

/usr/share/flexi/bin/flexi-backup /backup/flexi

🍎 macOS​

On macOS, the script flexi-backup can be found in the following directory:

/Library/WinStrom-PostgreSQL/Resources/

The directory for storing the created backups is passed as a parameter, for example:

/Library/WinStrom-PostgreSQL/Resources/flexi-backup /backup/flexi
Did this answer your question?