The store's records are kept on the store PC. If that PC's disk fails and you have no copy elsewhere, the customers, tickets and sales on it are gone. This page shows what to copy, how, and how to put it back.

What the store's data is, and where it lives

Everything EraPOS keeps for the store is in one folder: C:\EraPOS\local\data. Registers and tablets hold only a working copy, which they fill again from the store PC.

In the data folderWhat it is
erapos.dbThe database: customers, tickets and payments, appointments, the menu, employees and roles, settings, and the local owner account. While EraPOS runs, two helper files sit beside it, erapos.db-wal and erapos.db-shm. The three belong together.
employee-photosEmployees' pictures.
checkinSignatures that customers gave on a check-in tablet, in checkin\signatures.
lanThe private key and settings for secure access, if you added stations. See Add more registers.
centralThe saved connection to your WBAMS, locked by Windows for this Windows user.
controlThe link to your EraPOS account from activation, locked by Windows for this Windows user.
printer.json, shell.keyThis PC's own printer choice, and a key EraPOS makes again by itself.

Next to the data folder are C:\EraPOS\local\backups, where backups are made, and C:\EraPOS\local\logs.

Back up with the backup script

The script copies the database safely while EraPOS is running. Registers can keep selling. It then checks that the copy is sound.

  1. If a register was cut off from the store PC, let it reconnect first, so its saved work has arrived.
  2. On the store PC, signed in as the Windows user who runs EraPOS, open Windows PowerShell.
  3. Type this line and press Enter:
    powershell -ExecutionPolicy Bypass -File C:\EraPOS\local\scripts\Backup-EraPOS.ps1
  4. The script answers with where the copy is and what it holds. It prints one line for each thing the store has, for example:
    Verified database backup: C:\EraPOS\local\backups\server-20261010-183000\erapos.db
    Backup complete: C:\EraPOS\local\backups\server-20261010-183000
    This backup holds:
    - The store database (erapos.db), checked after copying.
    - Secure access (LAN): the private key, its configuration and the public certificate.
    - WBAMS connection: the sealed credentials, the trusted certificate and the defaults.
    - EraPOS account link: the sealed credentials and the trusted certificate.
    - Employee photos: 3 files.
    - Check-in signatures: 2 files.
    - Printer settings (printer.json).
    Included the private LAN key and its configuration. Keep this backup private; do not put it in the client connection kit.
    Included sealed credentials (WBAMS and EraPOS account). They open only for the original Windows user on the original installation; otherwise connect again.

Each run makes a new folder, C:\EraPOS\local\backups\server- followed by the date and time. The folder is private to your Windows user. The script never overwrites or removes an older backup, so delete old folders yourself when the disk fills.

To write the backup somewhere else, add -Destination and the path of a new folder to the line. A folder that already exists is refused: Choose a new backup folder; existing backups will not be overwritten.

In the backupIn the backup folder as
The database, checked after copying.erapos.db
The secure access files, if you added stations: the private key, its settings and the public certificate.lan and EraPOS-LAN-Server.cer
The saved connection to WBAMS, if the store is connected. It is sealed for the Windows user and the installation it was made on.central
The link to your EraPOS account, if the store is activated. It is sealed in the same way.control
Employees' pictures.employee-photos
Signatures on check-in waivers that customers signed.checkin\signatures
This PC's printer choice.printer.json

A backup leaves out the logs, the file shell.key, which EraPOS makes again by itself, and the earlier keys that a certificate renewal kept.

Do not run the script while you are in the middle of connecting the store server to WBAMS. Finish that first.

To back up every night, add the same line as a daily task in Windows Task Scheduler, running as the Windows user who runs EraPOS.

The copy Setup makes before each update

When you update EraPOS with a newer Setup file, Setup closes EraPOS and copies the data folder before it replaces the program.

  • The copy goes to C:\EraPOS\local\backups\before-update- followed by the new version, the date and the time. The files are in its data folder.
  • It holds everything in the data folder except lan. The private key stays only in its protected place.
  • Setup keeps the three newest of these copies and removes older ones.

This copy is a safety net for the update. It is on the same disk as the data, so it does not replace a backup kept elsewhere. See Update or uninstall EraPOS.

The copy shows the data as it was before the update. Once you are satisfied with an update, delete the copy or lock it away. For the update to 1.0.3, see Backups made before EraPOS 1.0.3.

Backups made before EraPOS 1.0.3

A backup is a copy of the database as it was on the day it was made. For a backup made before the update to 1.0.3, two things matter:

  • Card details. EraPOS keeps the last four digits of a payment card's number and nothing more of the number. See What EraPOS keeps of a payment card.
  • Employees' POS passwords. EraPOS keeps each one only as a keyed hash on the store server. Employee records carry no password. See POS passwords.

On its first start, EraPOS 1.0.3 goes through the store's records and empties the fields that held more. Nothing is deleted. A backup made before the update is not changed by this: it holds card details and POS passwords as they were stored then.

These are the backups made before the update:

  • the copy Setup made when it updated to 1.0.3: the folder C:\EraPOS\local\backups\before-update-1.0.3- with the date and time, and the before-update- folders of earlier updates beside it;
  • the server- folders in C:\EraPOS\local\backups that the backup script made before the update;
  • every copy of such a folder that you keep elsewhere: on a USB drive, on another PC or in online storage.
  1. Update, then work with EraPOS 1.0.3 until you are satisfied with the update.
  2. Make a new backup with the backup script. See Back up with the backup script. A backup made after the update holds only the last four digits of a card, and no POS password. On a large store, make it after the store has been quiet for 15 minutes, for example before opening the next morning: that is when the store server writes its database file anew.
  3. Copy the new backup off the PC.
  4. Delete the backups made before the update, wherever they are. If you want to keep one, lock it away: on an encrypted drive, in a place only the owner can reach.

If you ever restore a backup made before the update, the store server empties these fields again at its next start. Employees' POS passwords go on working.

Keep copies off the PC

A backup on the store PC is lost together with the PC. After each backup, copy the new server-… folder somewhere else.

  • Let the script write to its own place on the PC, then copy the folder to a USB drive or to storage you trust.
  • Keep at least one copy outside the shop.
  • Treat every copy as confidential. It holds your customers, staff and sales, and the private key for secure access once you added stations. Once it is on a USB stick, nothing but you protects it. Use an encrypted drive.
  • Back up at least once every day the shop is open.
  • Now and then, check that a copy can be opened and that it is recent.

Restore

EraPOS has no restore button. You put the files back while EraPOS is stopped. Choose a quiet moment: everything recorded after the backup was made is replaced by the backup.

Onto the same PC and the same Windows user

  1. Finish open sales. Let every register reconnect, then close EraPOS on every register.
  2. Stop EraPOS on the store PC. Close the EraPOS window, open Windows PowerShell and type these two lines:
    schtasks /End /TN "EraPOS Local Server"
    Get-Process | Where-Object { $_.Path -like 'C:\EraPOS\*' } | Stop-Process -Force
    The first line stops the part that restarts the server. The second stops the server. If the first line reports an error because start at sign-in is off, carry on.
  3. In C:\EraPOS\local\data, move erapos.db, erapos.db-wal and erapos.db-shm into a new folder somewhere else. Move all three. Keep them until you know the restore is right.
  4. Copy erapos.db from the backup folder into C:\EraPOS\local\data.
  5. Only what was lost: copy the backup's lan, central and control folders, employee-photos, checkin\signatures and printer.json back into C:\EraPOS\local\data, each in the same place. The public certificate, EraPOS-LAN-Server.cer, goes into C:\EraPOS\local. What is still there, leave alone.
  6. Restart the PC. Open EraPOS and look at a few recent tickets and customers.

To restore from a copy made before an update, copy everything from its data folder in step 4, including erapos.db-wal and erapos.db-shm if they are there.

Registers notice that the store's data changed and load it again from the store PC.

Onto a replacement PC

  1. On the new PC, sign in to Windows as the user who will run the shop. Run Setup for the same version of EraPOS, or a newer one. Untick Start the EraPOS server when you sign in to Windows and Open EraPOS when Setup finishes, then choose Install. Nothing is running yet. See Install EraPOS.
  2. Create the folder C:\EraPOS\local\data. Copy erapos.db from your backup into it. Copy the backup's employee-photos folder, its checkin folder and printer.json into it too, if the backup has them.
  3. Do not copy lan, central or control from the backup. They cannot be opened here. See the next section.
  4. Run Setup again. This time it says Update EraPOS. Tick Start the EraPOS server when you sign in to Windows and Open EraPOS when Setup finishes, then choose Update.
  5. EraPOS opens, and the store's data is in place. Before the registers can be used, redo the three things in the next section.

What cannot be restored onto a different Windows user

Three things are locked by Windows for the Windows user who made them, on that PC. A copy of them does not open anywhere else. That is deliberate: a stolen backup cannot be used to pose as your store.

A new PC is always a different user. So is the same PC after Windows was reinstalled, or a new Windows account with the same name.

WhatWhat you seeWhat to do
The link to your EraPOS accountRegisters cannot activate. The message says the store server's credential is missing or cannot be opened, and to pair again.Ask EraPOS support for a new pairing code and activate again. See Activate EraPOS.
The connection to WBAMSStored WBAMS credentials cannot be opened on this computer. Disconnect and pair again, or restore the original account that saved them.Connect again. See Connect the store server.
Secure access for stationsStations cannot connect. server.log has a line that starts with EraPOS LAN HTTPS is off:Set up secure access from the start and give every station the new certificate. See A different Windows user, or a different PC.

Everything in erapos.db does carry over: customers, tickets, sales, appointments, the menu, employees, roles, settings, and the email address and password of the local owner account. Employees' POS passwords go on working.