create.php 344 B

1234567891011121314151617
  1. <?php
  2. /*
  3. * Create a new backup file
  4. */
  5. elgg_load_library("backup_tool");
  6. $backup_options = get_input("backup_options");
  7. if ($filename = backup_tool_create_backup($backup_options)){
  8. system_messages(elgg_echo("backup-tool:create:success", array($filename)));
  9. }else{
  10. register_error(elgg_echo("backup-tool:create:fail"));
  11. }
  12. exit();