Help Mysql Backup Assistance Module

zaba

Verified User
Joined
Mar 6, 2007
Messages
15
Hi currently writes Backup MYSQL directory with the home in the DA will be available only from the admin but I have a problem when I create a copy of this creates a file I mysql_backup.tar he weighs 10KB and already I have no idea about it please help this is code

Code:
#!/usr/local/bin/php -c /usr/local/lib/php.ini
$rand = rand(0,20);
set_time_limit(0);
system("sudo -u root -S tar -cf /home/backup_mysql/mysql_".$rand.".tar /home/mysql/");
echo '<center>Backup Został Pomyślnie Wykonany :)<br>';

And rather than just perform the code is in the process of crashes so I see / usr / local / bin / php-c / usr / local / lib / php.ini / usr / local / DirectAdmin / plugins / backupmysql / admin / create.php

sudo -u root-S tar-cf / home/backup_mysql/mysql_21.tar / home / mysql /

and nothing happens except that the charging party non-stop
 
Back
Top