PHP script to backup MySQL on Mega (github.com)
This is a simple PHP script, that dumps a MySQL database in Gzip and upload it on Mega.co.nz service.
Since I'm new to open source, I'd like to hear your thoughts, improvements and stuff.
Since I'm new to open source, I'd like to hear your thoughts, improvements and stuff.
4 comments
[ 3.0 ms ] story [ 16.7 ms ] threadSince I'm new to open source projects I'd like to hear your thoughts, what can be improved, etc.
IV filled with 0s? Probably doesn't matter that much in this case, but... are you sure?
$comando - that's not English.
Regarding usability of this script: there are two libraries hiding in that file. One for RSA and one for interaction with mega service. Why not make them separate and reusable?
Also there's no usage instruction. Which variables need to be filled in? Is $master_key a global setting, or something used internally? Moving settings to a separate file (just import config.php for example) would make this much more clear.
Finally, you cannot just slap a new license on this code and put it in public domain. Most of the code comes from http://julien-marchand.fr/blog/using-the-mega-api-with-php-e... and the RSA bits come from Pear package which is licensed under the PHP license. If you keep them separate, you can put your own code in public domain though.
But if it all works... good! You made the first step and that counts :)