Skip to content

Restore from backup

When: a customer lost files, a database, a mailbox, a DNS zone or a whole account. Customers can restore their own files and databases in cPanel > Backup; these are the root commands.

  1. Find the run: flypanel backup list ACCOUNT (the account’s backups, newest first). Browse: flypanel backup ls ACCOUNT RUN [PATH].
  2. Restore:
    • files: flypanel backup restore files ACCOUNT RUN PATH... --wait (into a new restored-… folder; add --overwrite to put them back in place);
    • a database: flypanel backup restore db ACCOUNT RUN SCHEMA --wait (--into SCHEMA to restore beside it);
    • a mailbox: flypanel backup restore mailbox ACCOUNT RUN ADDRESS --wait;
    • a zone: flypanel backup restore zone ACCOUNT RUN ZONE --yes --wait;
    • a whole live account: flypanel backup restore account ACCOUNT RUN --confirm ACCOUNT --wait (takes a safety backup first);
    • a removed account: flypanel backup removed for its uid, then flypanel backup restore removed UID RUN --wait.
  3. flypanel backup restores — the restore’s state.

It worked when: the restore is ok and the customer confirms. A failed whole-account restore leaves the account suspended on purpose: read the error, fix it, run again. Escalate when: the destination is unreachable (flypanel backup dest test NAME fails) or no run has the data.