<keywords content="Sauvegarde,WEB" />
et paramétrer le site en ftp
<?php $filename = "jltryoenjoomla_3.0-" . date("Y-m-d") . ".tar.gz"; //echo $filename; system("tar -C ../joomla_3.0 --exclude ./tmp . $filename . " ."); $aref = sprintf("<p><a href=\"/dump_mysql/%s\">%s</a></p>", $filename, $filename); echo $aref; echo "<br>"; .>
<?php function mysqldump($name, $base, $host, $user, $pass) { $filename = sprintf("%s-mysqldump-%s-", $name, $base) . date("Y-m-d").".sql"; system("mysqldump --skip-add-locks --host=$host --user=$user --password=$pass $base > $filename"); $aref = sprintf("<p><a href=\"/dump_mysql/%s\">%s</a></p>", $filename, $filename); return $aref; } ?>