Quantcast
Channel: Drup.org - php
Viewing all articles
Browse latest Browse all 9

backup database

$
0
0

pre{border:none;background-color:#f4f3d7;padding:1em;-moz-border-radius:10px}

<?php
exec("mysqldump -uDBUSER -pPASSWORD DBNAME > DBNAME.sql");
exec("tar -czvf BACKUP.tar.gz .");
print "Done";


Viewing all articles
Browse latest Browse all 9

Trending Articles