Backup and Restore - Code Sample

You may want to programmatically back up and restore your site if:

When restoring a backup, you can manually edit the XML file to remove unneeded data. Show me moreClosed

For example, if you have one sandbox and multiple production environments, you may want to restore only certain items from the backup. You can do this by manually editing the XML. Leave the items you want to restore in the XML and remove everything that you don't want to restore. So, to remove a mission, you would remove everything inside the <Challenge> tag (located between the <challenges></challenges> tags).

Example Code Snippets

PHPClosed

Would be used as:

Node.jsClosed

Would be used as:

See also

Code samples