Jump to content

Cron Database Backup


unplugged_web

Recommended Posts

You write a small script in your favorite scripting language (or just PHP, since it has a nice mysql extension) which does the backup, however you want (e.g. lots of SELECT queries, then write everything to a text document), or you may be able to find such a script already made. Then you go into cron and schedule php /path/to/my/script.php to run (on a shared host, there should be some sort of interface for this, on a dedicated server, have a look at the cron manpage).

Link to comment
Share on other sites

You write a small script in your favorite scripting language (or just PHP, since it has a nice mysql extension) which does the backup, however you want (e.g. lots of SELECT queries, then write everything to a text document), or you may be able to find such a script already made. Then you go into cron and schedule php /path/to/my/script.php to run (on a shared host, there should be some sort of interface for this, on a dedicated server, have a look at the cron manpage).
Thanks for that.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...