dtrvzd1171 2011-09-12 15:40
浏览 13

将脚本添加到index.php

Dear stackflower users,

A few days ago there was a power outage and my mysql database was lost... (I did have a one month old backup)

So I started looking for a program that makes backups of my mysql database automatically. I found a script that does exactly this, its called phpMyBackupPro

According to the readme I had to add:

    require_once("phpMyBackupPro/schedule_backup.php");

To a page that gets loaded frequently (for example index.php)

So I tried adding this to my index.php page of joomla and clearing my joomla and browser cache. However the backup files are not being created when I load the index.php, when I run the script manually they are however.

So I started looking for some addons that could load php files in joomla, but they either didn't work or they where not compatible with joomla 1.7.

is their anyone who knows how to get this script to work, or knows a better way of automatically backing up mysql databases on windows?

  • 写回答

3条回答 默认 最新

  • dshkmamau65777662 2011-09-12 15:54
    关注

    I would avoid trying to what you mentioned and instead use a Joomla specific extension such as this:

    http://extensions.joomla.org/extensions/access-a-security/site-security/backup/15682?qh=YToxOntpOjA7czoxMDoibGF6eWJhY2t1cCI7fQ%3D%3D

    I have used this for years and it has saved my ass on multiple occasions so happily recommend it!

    Having said that if you're dead set on what you've mentioned simply add it to the BOTTOM of your template file located: templates/your_templates/index.php

    Hope this helps,

    Andy

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!