normally i use this command line:

$cmd = 'mysqldump -u ' . $db_user . ' -h ' . $db_server . ' --password=' . $db_pass . ' ' . ($db_name == '' ? '--all-databases' : $db_name) . ' | zip  > ' . $backup_filename;

but i need password protected zip file ;

thanks.

link|improve this question
The answer is: Don't. You cannot even assume that zip file only contains a single file. It would be much more appropriate to use gzip or bzip2 for compression and gpg for encryption. – ThiefMaster Jun 13 '11 at 15:36
feedback

migrated from stackoverflow.com Jun 13 '11 at 15:38

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown