In addition to manually backing up the company you are currently working in, which users are reminded to do when they finish working with a company, ABRA Flexi also supports automatic database backups. This form of backup uses a standard database function. A prerequisite for using automatic backups is that ABRA Flexi runs on your own server (however, even when running in the cloud, you can obtain backups via the REST API).
We recommend automatic backups as a solution that does not depend on the diligence of a designated employee and also saves the valuable time of key people who are authorized to back up a company.
When to use automatic backups
You want to back up at regular intervals
You need to back up frequently, for example several times a day
You need to back up a large number of companies (typically an accounting firm)
Because clients' requirements for backup times and frequencies are unique, we leave it up to you to define the schedule and to ensure that backups are run according to it.
Installing the script on the server
📌 Microsoft Windows
You can find the backup script zaloha_databaze.bat in the application directory, in the service folder, i.e.:
%SystemDrive%\Program Files (x86)\WinStrom\service\ %SystemDrive%\Program Files\WinStrom\service\
With this version of the script, you need to edit the backup directory directly in the file zaloha_databaze.bat. Specifically, this is 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 only in that copy.
If the script reports an error at 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 in newer versions of Windows (for example, Windows 11 from version 24H2) it is no longer installed by default. The replacement determines the current date using PowerShell, which is included with the system.
🐧 Linux
On Linux, you can find the flexi-backup script 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, you can find the flexi-backup script 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
