daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Sep 22nd, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  error_reporting(E_ALL); // Activer le rapport d'erreurs PHP
  3.  
  4. echo "test dump ... funky <br /> <br /> <br />";
  5. $db_server   = 'localhost;
  6. $db_name     = 'drupal';
  7. $db_username = 'drupal';
  8. $db_password = 'ea4oujo5Huth;
  9. $db_charset = 'utf8';
  10.  
  11. $archive_GZIP = "./backup_". date("d-m-Y") . ".sql.gz";
  12.  
  13. $result = system("mysqldump --host=$db_server --user=$db_username --password=$db_password -C -Q -e --default-character-set=$db_charset --port=3307 $db_name | gzip -c > $archive_GZIP ");
  14. ?>
  15. <pre>
  16. <?php
  17. var_dump($result);
  18. ?>
  19. </pre>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top