# 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
Current shell /bin/bash is up to date.\n
Done
\n
Restoring password
Done
\n
Restoring proftpd fileDone
\n
Resyncing FTP Passwords
Updating ftp passwords for userFtp password files updated.Ftp vhost passwords synced
Done
\n
Linking old home directories
Parsing Domain Databases...ParkedDomains......AddonDomains...
Restoring Domains
\n
Restoring Bandwidth DataDone\n
Restoring Counter Data

Restoring Homedir....
Done
\n
Doing fileprotect conversion
Restoring nobody owned filesDone
\n
Restoring Mail filesDone
\n
Restoring userdata....\nDone
\n

Restoring custom virtualhost templates....\nConverting email to cPanel 5+ (if needed)
Done
\n
Cleaning up filters (if needed)
vfilter converter v3.0Updating vfilter files to latest format.Running for user only (force=0) (has_spam_acl=1)Processing user......Done
Done
\n
Fixing mail permissions
Done
\n
Restoring crontabDone
\nConverting to maildir if needed
Done
\nRestoring Dns Zones
Restoring zone: user.com.db\n

Adding missing subdomain DNS entries (if needed)

Update Proxy subomains
Adding proxy subdomains for domain example.com.Records Installed
Done
\n
Updating SPF Records
Done
\n
Restoring quota
Done
\n

Update mail routing
LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for example.com's mail.: This configuration has been manually selected.\n
Done
\n
Rebuilding Apache Conf
Restore CompleteAccount Restore Complete\nUnlocking password for user user.passwd: Success.
" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1