Laravel 2 min read

Restore one order before you trust your Laravel backup

Restore a Laravel backup in isolation and check an order, its attachments and encrypted fields before you rely on it in an outage.

Restore one order before you trust your Laravel backup

Pick one record you need to recover. An order with an attached PDF works well. In an isolated restore, sign in, find the order and download the file. That check can fail even when the database imports and the homepage loads.

Find every piece the order depends on

Record the backup timestamp and matching code release. Check that you have the database, any files stored outside it and the configuration required to read both. If the app uses Laravel encryption, make sure the restore can access the relevant keys securely. Keep the key itself out of the restore notes.

Keep the restored copy away from live work

Before booting the restored app, point it at an isolated database and storage. Disable live workers and scheduled jobs. Route email to a test sink and block live payment, fulfilment and accounting calls. A copied job or an old integration credential can otherwise send work to the real systems.

Write down what you actually recovered

Open the order, download its PDF, and check a record that uses encrypted data if your app has one. Note the newest record you can recover and how long the whole exercise took. If the PDF is missing, check the object store backup and whether it covers the same point in time as the database.

If you’ve inherited an app and don’t know whether it can be restored, tell me which records or files the business would need first.

Need a hand with this?

Work directly with me on an existing Laravel application, from a focused assessment to ongoing development.

Talk directly to Adam

Share this article

Back to Blog