Automatic db backup function

1
2
<?php
backup_database_tables('host','username','password','db', '*');
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Add this task to crontab:
wget -O /dev/null http://<site_name>/database_backup/backup.php

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.