I am created a link to that file in the action's template. It's ok
now.
On Aug 31, 11:54 am, Lorand <tloran...@gmail.com> wrote:
> Hi, Szabolcs!
>
> I tried something like this:
>
> public function executeBackupDb()
> {
> $backupFile = '/var/www/dbname/backup'. date("Y-m-d-H-i-s") .
> '.gz';
> $command = "mysqldump --opt -uuser -ppass dbname | gzip >
> $backupFile";
> system($command);
> }
>
> but the file wasn't created because the folder does not exist.
> Actually only at this moment i am observed.
>
> Can you/anybody have any idea how can i transfer it to the client's
> computer via this action. So to be able the client to download the
> generated file.
>
> Thanks
>
> On Aug 31, 11:29 am, Szabolcs Heilig <szabolcs.hei...@gmail.com>
> wrote:
>
> > Hi,
>
> > If you execute mysqldump on your webserver with system() command, you will
> > have
> > the dump already on your webserver. Or you want to download the dump to the
> > client?
>
> > I want to create an action in my backend application to execute the
>
> > > mysqldump command. Like system(mysqldump ....).
> > > If it is possible, how can i download the generated file to the computer
> > > which will execute that action.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---