Demo

Illustrative example - not a client. All companies, people and numbers are made up.

Backup and restore test.

Every night the database and all files are copied, encrypted, to a second place. Once a month the system administrator restores a copy into an empty server, and code compares it with the figures saved at the moment of the copy. The owner reads the result.

Company
Demo Manufacturer LLC and Demo Manufacturer US Inc.
Starts when
Every night at 02:00
How often
A copy every night, a restore test every month
Select a step to open its card. The table below lists every step in order.

Steps

Steps in order

#StepDone byToleranceRollout stage
1Code copies the database and the files Backup · Automation, no AIExact, every file and 1 more3
2Code checks the copy in its second place Backup check · Automation, no AIChecksum exact and 3 more3
3System administrator restores a copy System administratorThe same build and modules and 1 more3
4Code compares the copy with the live books Restore check · Automation, no AIExact, read before anybody signs in and 2 more3
5System administrator corrects the cause System administratorExact, as in step 43
6Owner reads the result of the month OwnerA good copy of every night and 2 more3

Rollout stage: 3 · Move to Odoo with reconciliation.

Before

How it was done before

Nobody copied the Google Sheets, because they were in the cloud. QuickBooks Online was exported once a year, and no export was ever opened.

Where it breaks without control

  • A copy is made every night for a year and nobody ever opens one.
  • The database is copied and the files are not, so every bill is there and no PDF behind it.
  • The key that opens the copy is kept only on the server that was lost.
  • A restored copy starts its own jobs, sends letters to dealers and lets the agents write to it.

Controls

What is checked, and who signs

Checks

StepCompared withToleranceOn a difference
1 · Code copies the database and the filesThe files named in the database against the files put into the copy, by name and checksumExact, every file; control figures read in the same moment as the copyThe copy is marked incomplete with the files that are missing and made again at once. A second incomplete copy of the same night goes to the system administrator's exception queue, and the copy of the night before is kept longer.
2 · Code checks the copy in its second placeThe copy in the second place against its line in the log - checksum, age and size; the size against the night before; the list of contents after opening it with the keyChecksum exact; age at most 26 hours; size within 20 % of the night before; opens with the keyThe night is marked bad and stands first in the system administrator's exception queue in the morning. Two bad nights one after the other go to the owner. Old copies are not deleted while the newest one is bad.
3 · System administrator restores a copyThe empty server against the line of that night - number of the Odoo build and list of modules; what was done against the written instructionThe same build and modules; every step written downA step that was missing is added to the instruction the same day. The copy is restored with Odoo's neutralise option, which switches off mail servers and every scheduled job but Odoo's own clean-up; our script switches that one off too and deletes the agents' API keys. The restored copy is opened to nobody before both are done.
4 · Code compares the copy with the live booksRows per table, the last number of each journal, the balance of each account per company and the checksum of each file in the copy, against the control figures of the same momentExact, read before anybody signs in; the few tables the neutralise option and our script write to are named and left out; 20 bills drawn at random open with their PDFThe result is incomplete and names the table, the journal or the file. The live books of today are not used for the comparison, because they have moved on since. The server is kept until the cause is found, closed to everyone but the system administrator.
5 · System administrator corrects the causeA new copy restored the same day against its own control figuresExact, as in step 4The month's test stays failed and goes to the owner the same day, with the last night whose copy is known to be complete. Every night with the same fault is marked bad.
6 · Owner reads the result of the monthThe good copies against the nights of the month; the date of the last passed restore test against the month; the people who hold a key against the registerA good copy of every night; one passed test in the month; two keys outside the server, held by two peopleThe owner orders a test at once and, until it passes, no new version of Odoo, of a module or of an agent goes onto the server.

Duties by role

What the action log records

StepRecordWhat is written
1 · Code copies the database and the filesBackup logTime, size, checksum, the number of the Odoo build and the list of modules
1 · Code copies the database and the filesBackup logControl figures of the same moment - rows per table, last number of each journal, balance of each account per company, files with their checksums
2 · Code checks the copy in its second placeBackup logState copied to good or bad, with each result
3 · System administrator restores a copyBackup logThe night drawn, start and end of the restore, each step that was not in the instruction
4 · Code compares the copy with the live booksBackup logEach comparison with both figures; result complete or incomplete; after a complete result the test server erased, with the time
5 · System administrator corrects the causeBackup logThe cause, the correction, the nights that have the same fault, and the result of a new copy and a new restore
6 · Owner reads the result of the monthBackup logMonth read, with the time

Connected processes

Where the work comes from and where it goes

Work goes to

This process hands work to no other one. It ends here.

Work comes from

No other process hands work to this one. It starts from its own trigger.

Back to the diagramShow it on the process map

Want this process checked on your data?

Tell us where it goes wrong.

Write to us about this process