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. Therefore, copy the script to another location where the installation will not overwrite it, and make all changes in this copy only.
If the script reports an error with the wmic command when run, replace the following line in your copy of the script:
for /f "skip=1 delims=" %%x in ('wmic os get localdatetime') do if not defined X set X=%%xwith:
for /f %%x in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set X=%%x
ℹ️ Microsoft is gradually removing the WMIC tool, and it is no longer installed by default in newer versions of Windows (e.g. Windows 11 version 24H2 and later). The replacement gets the current date using PowerShell, which is part of the system.
🐧 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
