Since EraPOS 2.0, a store connected to WBAMS has its records in two places. WBAMS keeps the salon's records, and the store PC keeps a full working copy, so the shop sells while the internet is down. Some things are kept only on the store PC. This page says which, how to copy them, and what to put back where when a PC is lost.

What WBAMS keeps, and what only the store PC holds

While the store PC is connected, each sale, client, appointment, clock-in and close-out goes to WBAMS, and WBAMS's changes come back to the registers by themselves. See This store's records in WBAMS.

Kept in WBAMSKept only on the store PC
Staff, with their names, contacts, hours, pay and commission, and their register role.Each employee's POS password, nickname, colours, queues and turn order.
The register roles.The roles of a store that is not connected to WBAMS.
The menu with its prices, the store's details and opening hours, points rules and the loyalty programme.The menu's pictures and the check-in layout, the receipt logo, the receipt layout, the POS and terminal profiles, the look chosen under Appearance and the POS options of Store Settings.
Clients, appointments, points and gift cards: WBAMS sends these back to a store PC that is connected again.The register's own copy of past tickets, which its reports, payroll and close-out screens read.
Each completed sale as an invoice, with its payments and tips. Clock-ins, close-outs, cash drawer entries and signed waivers.Whatever was saved while WBAMS could not be reached and has not been sent yet. The WBAMS Connection page shows how many records are on their way.

So WBAMS is the place the salon's records are safe, and a backup of the store PC is still needed: for what only it holds, and to bring a replacement PC back as it was. Back up WBAMS with your website, as your web host provides.

A store that is not connected to WBAMS keeps everything on the store PC alone. If that PC's disk fails and you have no copy elsewhere, the customers, tickets and sales on it are gone.

Where the store PC keeps its data

Everything EraPOS keeps on the store PC 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, what has been sent to WBAMS and what is still on its way, 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.
picturesThe menu's pictures and the receipt logo.
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-20261126-183000\erapos.db
    Backup complete: C:\EraPOS\local\backups\server-20261126-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.
    - Menu pictures and receipt logo: 24 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
The menu's pictures and the receipt logo.pictures
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.

Backups made before EraPOS 1.0.3

A backup is a copy of the database as it was on the day it was made. Since EraPOS 1.0.3, EraPOS keeps the last four digits of a payment card's number and nothing more of it, and keeps employees' POS passwords only as keyed hashes on the store server. See What EraPOS keeps of a payment card and POS passwords. A backup made with an earlier version still holds card details and POS passwords as they were stored then.

These backups are the before-update- and server- folders made before the store was on 1.0.3 or later, and every copy of them kept elsewhere: on a USB drive, on another PC or in online storage.

  1. Make a new backup with the backup script. See Back up with the backup script. 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.
  2. Copy the new backup off the PC.
  3. Delete the older backups, 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 such a backup, 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. A store connected to WBAMS has its sales in WBAMS as well, but the store PC's own settings and its copy of past tickets are only in a backup.
  • 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, and the newest backup you have.

What to put back where depends on what was lost:

What happenedWhat to do
The store PC works, but its data went wrong.Restore onto the same PC.
The store PC is lost or replaced, and you have a backup.Restore onto a replacement PC, then connect it to WBAMS again.
The store PC is lost, there is no backup, and the store was connected to WBAMS.Start again from WBAMS.
Something is wrong in WBAMS.Restore WBAMS from your website's backup, as your web host provides. A store PC backup does not put records back into WBAMS.
What a restore replaces.

Everything the store PC recorded after the backup was made is replaced by the backup. On a store connected to WBAMS, sales and close-outs made after the backup are still in WBAMS, as invoices and close-outs there, but they are not brought back to the store PC: its own reports, payroll and close-out screens will not have them. Clients, appointments, staff, the menu, points and gift cards changed since the backup do come back from WBAMS by themselves.

Onto the same PC and the same Windows user

  1. Finish open sales. Let every register reconnect, then close EraPOS on every register. On a store connected to WBAMS, open MENU → Administration → WBAMS Connection first: if it says Up to date, nothing the store PC saved is still on its way.
  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, pictures, 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. On a store connected to WBAMS, the WBAMS Connection page shows the store connected, and catches up with what WBAMS changed meanwhile.

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, pictures and checkin folders 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 things in the next section: on a store connected to WBAMS, connect it again first.

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 connection to WBAMSOn MENU → Administration → WBAMS Connection: Needs attention, The saved connection cannot be opened on this computer.Connect again, as described below.
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.
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.

To connect a replacement store PC to WBAMS again:

  1. In WBAMS, open POS → Store computers and choose the location. Under This location's store computers, choose Remove beside the old store PC. Its connection stops at once.
  2. Choose Make a connection code. The code works once, for 15 minutes.
  3. On the new store PC, open MENU → Administration → WBAMS Connection. When the page says the saved connection cannot be opened, choose Disconnect and confirm. The store's records stay on the PC.
  4. Under Connect this store computer, enter the WBAMS address, the Connection code and the Name of this computer, then choose Connect.
  5. The page says Catching up while the store sends its records once more. WBAMS matches what it already has, so nothing is made twice. The registers work as usual meanwhile, and the page ends on Up to date.

If administration is locked when you open the page, unlock it first. On a PC whose saved connection cannot be opened, the Administration page offers Connect this server to WBAMS with the local owner account. See Before the store is connected to WBAMS.

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.

Start again from WBAMS, without a backup

A store that was connected to WBAMS can start again on a new PC without a backup. WBAMS gives the new store PC what it keeps.

  1. Install EraPOS on the new PC and create the store's owner account at the first sign-in. See Install EraPOS.
  2. In WBAMS, remove the old store PC under POS → Store computers and make a connection code.
  3. On the new PC, open the WBAMS Connection page with Connect this server to WBAMS and connect, as described above. See Before the store is connected to WBAMS.

Within a few minutes the registers have the store's details and opening hours, the staff and their roles, the menu, the clients, the appointments, and the points and gift cards. The sales stay in WBAMS, as invoices.

What has to be set up again on the store PC:

The register's own reports, payroll and close-out screens start from the new PC's first day. Earlier days are in WBAMS's reports.