Skip to content

Instantly share code, notes, and snippets.

@joelwurtz
Created November 7, 2014 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelwurtz/8007427292d558dad061 to your computer and use it in GitHub Desktop.
Save joelwurtz/8007427292d558dad061 to your computer and use it in GitHub Desktop.
<?php
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="backup.sql"');
passthru('mysqldump --all-databases');
@damienalexandre
Copy link

@clemherreman
Copy link

WTF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment