On a clinic that works with a server (your own or the cloud), the clinic's data lives on that server, and every device keeps a working copy of it. Two kinds of backup protect it:
- Server backups: full backups of the clinic database, made by the server on a schedule. Cloud clinics' server backups are managed centrally by ESCAI.
- Copies on a device: a PC (or phone) downloads the latest verified server backup and keeps it, so the clinic still has a copy if the server is lost.
The server backup in the side menu
At the bottom of the side menu, Server Backup shows the date of the latest full backup.
- 1When the latest full backup was made.
- 2Checks again.
- 3Saves that backup on this device.
- 4Makes a new backup on the server now.
- Save latest to this device downloads that backup into this device's backup folder.
- Create server backup asks the clinic server to make a new verified backup now, for example before a big change.
On a clinic server, only a clinic administrator can create or download backups; other users see a note instead of the buttons.
Backup settings
Open Settings › Backup. A cloud clinic sees only the first card; the other cards are for clinics with their own server.
- 1Where this PC keeps its copies.
- 2Downloads the latest backup now.
- 3How often the server makes a full backup.
- 4How many days of full backups the server keeps.
- 5The folder on the server computer for its backups.
- 6A copy of this device's own database.
Keep copies on this PC
- In Backup folder on this device, tap the folder icon and choose a folder, ideally on another disk.
- Tap Download now. The first time, this turns on backups for this device. An administrator must have signed in on this device once.
- From then on, while ESCAI is open, it downloads the latest verified backup every 24 hours and keeps the newest three copies. Last local copy and Next due show where it stands.
On a phone the copy is saved inside the app with Save and share latest backup, and you can share the file. In a web browser the backup is downloaded by the browser.
The server's schedule and folder
- Unified Backup Schedule: Full backup every (hours) and how many days of Full backups to keep. Tap Save Schedule.
- Primary server backup storage: Backup Path 1 is the folder on the server computer where it writes its backups. Tap Save Paths.
Only a signed-in clinic administrator can change these two cards; others see them read-only.
This device's database
The Database card works on this device's own copy (its local cache), not on the clinic server:
- Export Local Cache (.db) saves a copy of the device database, for example before you reinstall.
- Import Local Cache (.db) replaces this device's database with a saved .db file. ESCAI asks you to confirm.
- Reset Database deletes all data on this device. You must type RESET to confirm. Then download the data again (see sync and offline work).
Google Drive backup (encrypted)
The Google Drive backup card keeps a locked copy of the clinic backup on the clinic's own Google account, once a day. Google stores only encrypted files; they open only with the clinic's backup password. Only a clinic administrator can connect the account, set the password or download a backup.
- 1Disconnect the account from every device of the clinic.
- 2Set or change the backup password.
- 3Upload the newest backup now.
- 4Download a backup from Google Drive.
- 5Keep an encrypted copy of every image.
- 6How many images are on the Drive.
- Use a Google account that belongs to the clinic, not a staff member's personal account.
- Tap Connect Google account. ESCAI shows a short code. On any phone or computer, open the address shown, sign in with the clinic account and enter the code. ESCAI can see only the files it creates, not the rest of the Drive.
- Set the backup password and write it down somewhere safe. Without it the backups cannot be opened — not by the clinic and not by ESCAI support.
- That is all for the other devices: the clinic server hands the account to every phone and computer of the clinic, which then shows Connected for the whole clinic by an administrator. They do not sign in to Google themselves and never see the backup password. Disconnect (administrators only) stops it on every device at once.
- While ESCAI is open, this device uploads the newest server backup once a day into the ESCAI › clinic name › Backups folder, keeping the newest seven. Back up now uploads at once. An upload cut off by a lost connection or a closed app continues where it stopped.
To get a backup back, tap Download a backup, choose one, and type the backup password. On a PC, choose a folder; then restore the saved file with Restore SQL Server Backup (.bak) (see below). On a phone, the file opens the share sheet.
Save clinic images to Google Drive
Turn on Save clinic images to Google Drive to keep an encrypted copy of every image on the same Google account, as an extra archive.
- Turn it on on the archive PC: it holds every original. Another device copies only the images it has and says how many are on other devices.
- ESCAI says how many images are missing on the Drive, about how much space they need and how much is free. If the Drive is too small it does not start.
- The bar shows how many images are on Google Drive. Pause stops it and Copy now continues; a lost connection or a closed app continues where it stopped. New images are copied every hour while ESCAI is open.
Images are locked with one clinic image key, kept on the Drive and locked with the backup password. The administrator's device also gives the key to the clinic server, which passes it to every device of the clinic, so they all open the same images without the password. The backups themselves still open only with the password. Files are in ESCAI › clinic name › Images › year.
Images from Google Drive
Every device of the clinic also reads images from the Drive. An image is looked for in this order:
- This device. An image already here opens at once and nothing is downloaded.
- Google Drive, when the clinic's account is connected. It is downloaded straight from the Drive, so it opens while the archive PC is off, and even while the clinic server cannot be reached.
- The archive PC. Only when the Drive does not have the image, the server asks an archive PC to send it. The image shows a waiting sign until it arrives.
The small pictures in the patient's Scan tab follow the same order: a picture that is not on this device is taken from the Drive by itself, without tapping it.
The one exception is a clinic whose server is inside the clinic: a device on the clinic network asks that server first, because the local network is faster than any download and needs no internet. From outside the clinic the Drive comes first.
The device remembers which images are on the Drive and only checks what was added since, so opening an image, and Download all images, do not wait for a list of the whole Drive.
After a move to a new account, or from outside the clinic
The clinic's folder on the Drive belongs to the clinic's data, not to the address or the account a device uses. A device that reaches the clinic under a new account, or from outside the clinic, finds the folder that is already there and uses it: the same images open, and nothing is copied a second time.
Devices that took the Google account from the clinic server stay connected through the move and keep opening images. The new account hands the Google account out again by itself, the first time an administrator opens ESCAI on a device that has it. Only Disconnect by an administrator signs the devices out.
If the clinic connects another Google account, that Drive starts empty: ESCAI forgets its list of the old Drive and copies every image to the new one.
On a device set to Thumbnails, an original is removed to save space only when two copies are safe elsewhere. A copy on Google Drive now counts as one of the two, next to at least one archive PC; a Drive copy alone never does.
Restore data
The Restore clinic data screen opens when you connect a device to the clinic server (see own server and updates). Use it for a new device, or to rebuild a device's data.
- 1Downloads a ready copy of the clinic data from the server.
- 2The other ways to restore.
Restore from Server Snapshot is the fast, recommended way: the device downloads one ready copy of all the clinic's data from the server.
Other restore options opens the rest:
- 1Import from another clinic program.
- 2Replace this device's database with a .db file.
- 3The older table-by-table download.
- 4These options replace the server's data.
- 5Restore a SQL Server backup on the server.
- 6Rebuild the server from a .db file.
| Option | What it replaces |
|---|---|
| Import from another clinic program | Nothing: it adds another program's data. See importing data. |
| Restore Local SQLite Backup (.db) | Only the database on this device. |
| Legacy Sync Dashboard | Nothing: it downloads table by table. Slower, for when the snapshot fails. |
| Restore SQL Server Backup (.bak) | All the data on the server. |
| Restore Server From SQLite (.db) | The server's tables, from a .db file. |
If this device has records that have not reached the server yet, ESCAI lists them first: Keep my data stops, Delete them and restore goes on and loses them.
Database operations (support only)
Database Operations is a support tool: direct table and SQL access, patient code repair, moving old investigation images out of the database, and diagnostic reports. It is hidden from the menu, in English only, and meant to be used with ESCAI support.
- 1Repairs patient codes after a check.
- 2Moves old images out of the database.
- 3Builds a query to read a table.
See also sync and offline work and importing data.
Last updated: · Matches ESCAI 1.35.0