# Restore account backup
This function restores an account backup. You can use this function to restore daily,
weekly, or monthly backups.
* When you call this function, you include at least one of
the , , , or parameters.
* On servers with a custom module, the function may not return XML
output. To properly return XML output, the module allow
the system to use the module to capture output.
On servers that run CentOS 7, you may see a warning about the absence of SPF
resource records on DNS.
* This warning is not relevant on CentOS 7 servers, because
RFC 7208 deprecated SPF records.
CentOS 7 servers use records instead of records.
* Red Hat 7.1 and CentOS 7.1 both contain , which is an updated
version of BIND that complies with RFC 7208. To resolve this issue, update your
operating system to a version that contains the updated version of BIND. For more
information, read the
Red Hat Bugzilla case about SPF record errors.
Endpoint: GET /restoreaccount
Version: 11.134.0.5
Security: BasicAuth
## Query parameters:
- `type` (string, required)
The type of backup to restore. The function restores the most recent backup of
the type that you specify:
*
*
*
Enum: "monthly", "weekly", "daily"
- `user` (string, required)
The account's username.
Example: "username"
- `all` (integer)
Whether to create the account before restoration.
* — Create and then restore the account. If you select this value and the
account already exists, the function will fail.
* — Restore .
Enum: 0, 1
- `ip` (integer)
Whether to assign a dedicated IP address to the restored account.
* — Assign a dedicated IP address.
* — Use the shared IP address.
Enum: 0, 1
- `mail` (integer)
Whether to restore account-level filters (vfilters) and forwarders
(valiases).
* — Restore.
* — Do restore.
Enum: 0, 1
- `mysql` (integer)
Whether to restore the account's MySQL® databases.
* — Restore.
* — Do restore.
Enum: 0, 1
- `subs` (integer)
Whether to restore the account's subdomains.
* — Restore.
* — Do restore.
Enum: 0, 1
## Response 200 fields (application/json):
- `metadata` (object)
- `metadata.command` (string)
The method name called.
Example: "restoreaccount"
- `metadata.output` (object)
- `metadata.output.raw` (string)
An output message that may contain long HTML.
Example: "Extracting tarball...................\nDone
\nExtracting Domain....Done
\nDone
\n
Restoring cpanel user config fileDone
\n
Restoring reseller privs (if any)
Restoring Locale Setting
Restoring SSL keys and CertificatesDone
\n
Restoring frontpage (if installed)Done
\n
Restoring access logs....\nDone
\n
Restoring domain keys....\nDone
\n
Restoring DB MAP File....\nDone
\n
Restoring PostgreSQL databases....\nRestoring PostgreSQL privs\nDone
\n
Restoring Mailman listsDone
\n
Restoring Mailman ArchivesDone
\n
Restoring shell
DoneCurrent shell /bin/bash is up to date.\n
Done
DoneUpdating ftp passwords for userFtp password files updated.Ftp vhost passwords synced
Done
Done
Donevfilter converter v3.0Updating vfilter files to latest format.Running for user only (force=0) (has_spam_acl=1)Processing user......Done
Done
Done
Restoring zone: user.com.db\n
DoneAdding proxy subdomains for domain example.com.Records Installed
Done
Done
DoneLOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for example.com's mail.: This configuration has been manually selected.\n