Hi, I'm trying to do a php script to backup my database. Here's what I've tried so far (in an action) : $command = "mysqldump -u [username] -p [password] [databasename] | gzip > db.sql.gz"; $this->output = system($command);
1) How do I get the password and username from databases.yml ? 2) How can I do a script that sends me the backup file, instead of saving it on the server (à la phpmyadmin) ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en