1C backups on a rented server: what we back up and how we test restores

1C backups on a rented server: what we back up and how we test restores

A daily backup appears in the description of almost any server rental. But what matters to accounting is not the backup itself but the answer to another question: if the database will not open in the morning, how soon and in what state will it come back? Here is what exactly we back up on a rented server running 1C, where the backups are kept, how we check that they can be restored, and what happens when a restore is actually needed.

What we back up

Every day we make two backups:

  • The whole server. The system, settings, software, accounts and all databases. From this backup the server comes back exactly as it was at the moment of the backup. The first backup is full; after that only the changes are copied each day, so backups are quick and do not get in the way of work.
  • The 1C database separately. If only the database is damaged or needs to go back to yesterday, there is no need to restore the whole server: we restore just the database.

How many days backups are kept is set in the contract.

Where backups are kept

Backups are kept in two places: one in the same data centre, the second in another of our data centres. Neither is kept on the working server itself. If the server fails or there is an incident at one data centre, a backup remains at the other. Why a backup on the same server does not help is covered in the article “Backups: the 3-2-1 rule”.

Server 1C base backup server fails — backup gone too
WrongThe backup is on the same server: the server failed, and the backup went with the database.
Data centre 1 server 1C base backup 1 Datacentre 2 backup 2
RightBackups are kept away from the working server, in two data centres: an incident in one place does not take all the backups.

How we check that a backup can be restored

A backup nobody has ever restored from is a hope, not a guarantee. So for clients on our maintenance we run a test restore once a quarter:

  1. 1Restore the backup separately
  2. 2Open 1C and the database
  3. 3Check the last document
  4. 4Report to the client
  1. We restore the backup away from the working server. The working server is not touched, and staff carry on as usual.
  2. We open 1C and the database. We log in to 1C on the restored server and check that the database opens and works.
  3. We check the last document. The last document in the backup must match what was in the working database at the time of the backup. This shows the backup is recent and complete, not merely present.
  4. We send a report. What we checked, from which backup and with what result. If something went wrong, we fix it straight away rather than on the day of an incident.

Four cases when a backup is needed

The server will not boot

A system failure, a failed update or a hardware fault. We restore the whole server from the latest backup, with the system, settings, accounts and databases. Staff connect to it the same way as before.

The 1C database is damaged

The server works, but 1C will not open the database or shows errors. We restore only the database from its separate backup and leave the rest of the server alone.

Data was deleted or spoiled

An employee deleted documents or re-posted a period, and it was noticed a day later. Rolling the whole database back is not an option: everything done since would be lost. So we restore the database as of the right date next to the working one, and the needed documents are moved from it into the working database. The sooner it is noticed, the easier: backups are kept for as many days as the contract says.

Ransomware

If ransomware does reach the server, we first close the way it got in, otherwise it will come back to the restored server. Then we find the latest backup made before the infection and restore the server from it. How to keep ransomware off the server is covered in the article “Server security in a data centre”.

Timing and who is responsible for what

We take a restore request into work within SLA times, like any request: in the basic package the response is within 2 hours, in a custom package within 15 minutes, 24/7. How long the restore itself takes depends on the size of the server and the database and on what is restored: one database or the whole server. More on timing in the article “SLA-backed technical support”.

TaskWhoWhat exactly
Daily backupsusthe whole server and the 1C database separately, in two data centres
Restore checkus, under maintenanceonce a quarter, with a report
Restoreusat your request, or straight away if the failure is on our side
Requestyouwhat happened, since when, and the date the database is needed for
Check after the restoreyouthe accountant looks at the latest documents and balances and confirms everything is in place

Example: a trading company

A fictional trading company with 15 users, 1C on a rented server in our data centre, on our maintenance. Over a year it had two cases.

The server did not boot after an update

On Monday morning staff could not connect to the server: after an update the system did not boot. We restored the server from the Sunday night backup, staff connected to it as usual, and the orders taken by phone that morning were entered into 1C. The quarterly test restores had passed without remarks, so there were no surprises.

The accountant re-posted a quarter

The accountant re-posted a quarter’s documents with a wrong setting, and the balances went off. It was noticed the next day, when staff had already posted new sales. Next to the working database we restored yesterday’s backup; the accountant compared the balances and moved the correct documents across, and the new sales stayed in place. The work was charged to the maintenance hours under the contract.

How much it costs

Daily backup is included in every rental plan; the plans are on the “Server rental” page. If the failure is on our side, for example data centre hardware fails, the restore is included in the rental. A restore at your request, when documents were deleted or the database was damaged, is charged to the maintenance hours under the contract; hours beyond the agreed amount are billed separately. We quote the price of maintenance after a call.

Want to know whether your 1C will restore from a backup? Send a request: we will call back, explain how backups work in a rental and choose a plan.

Open WhatsApp