Save Database with date

<?php $BACKUP_NAME= 'mysql_backup_' . date('Y-m-d'); //Site ld system("mysqldump --host=mysqlhost --user=username --password=xxxxxx littledr > '$BACKUP_NAME'.sql"); system("gzip '$BACKUP_NAME'.sql"); ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.