<bdo id='89wPZ'></bdo><ul id='89wPZ'></ul>
    1. <legend id='89wPZ'><style id='89wPZ'><dir id='89wPZ'><q id='89wPZ'></q></dir></style></legend>

      <i id='89wPZ'><tr id='89wPZ'><dt id='89wPZ'><q id='89wPZ'><span id='89wPZ'><b id='89wPZ'><form id='89wPZ'><ins id='89wPZ'></ins><ul id='89wPZ'></ul><sub id='89wPZ'></sub></form><legend id='89wPZ'></legend><bdo id='89wPZ'><pre id='89wPZ'><center id='89wPZ'></center></pre></bdo></b><th id='89wPZ'></th></span></q></dt></tr></i><div id='89wPZ'><tfoot id='89wPZ'></tfoot><dl id='89wPZ'><fieldset id='89wPZ'></fieldset></dl></div>
    2. <small id='89wPZ'></small><noframes id='89wPZ'>

        <tfoot id='89wPZ'></tfoot>

        PHP中的网站备份?

        Web site backup in PHP?(PHP中的网站备份?)
          <bdo id='S5oe5'></bdo><ul id='S5oe5'></ul>
        • <i id='S5oe5'><tr id='S5oe5'><dt id='S5oe5'><q id='S5oe5'><span id='S5oe5'><b id='S5oe5'><form id='S5oe5'><ins id='S5oe5'></ins><ul id='S5oe5'></ul><sub id='S5oe5'></sub></form><legend id='S5oe5'></legend><bdo id='S5oe5'><pre id='S5oe5'><center id='S5oe5'></center></pre></bdo></b><th id='S5oe5'></th></span></q></dt></tr></i><div id='S5oe5'><tfoot id='S5oe5'></tfoot><dl id='S5oe5'><fieldset id='S5oe5'></fieldset></dl></div>
            <tbody id='S5oe5'></tbody>

                <tfoot id='S5oe5'></tfoot>

                • <small id='S5oe5'></small><noframes id='S5oe5'>

                  <legend id='S5oe5'><style id='S5oe5'><dir id='S5oe5'><q id='S5oe5'></q></dir></style></legend>
                • 本文介绍了PHP中的网站备份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有人知道一个干净的基于 PHP 的解决方案,可以使用 FTP 备份远程网站吗?

                  Does anybody know a clean PHP-based solution that can backup remote web sites using FTP?

                  必备:

                  • 递归 FTP 备份
                  • 可以运行 cron 作业
                  • 易于配置(轻松添加多个站点)
                  • 备份文件的本地存储就足够了

                  会很好:

                  • 备份的网站存储为 zip 文件
                  • 管理事务的好界面
                  • 在备份成功或失败时提供通知
                  • 是否进行增量备份
                  • 是否备份 MySQL 数据库

                  我需要它基于 PHP,因为它将用于不允许使用标准 GNU/Linux 工具的共享主机包.

                  I need this to be PHP based because it's going to be used on shared hosting packages that do not allow usage of the standard GNU/Linux tools.

                  推荐答案

                  我之前在一个 cron 作业 PHP 脚本中做过类似的事情.不确定这是否是最好的方法,但它确实有效.

                  I have done something like this in a cron job PHP script before. Not sure if it is the best way, but it certainly works.

                  $backup_file = '/home/example/sql_backup/mo_'.date('Y-m-d').'.sql.gz';
                  $command = '/usr/bin/mysqldump -c -h'.DB_HOST.' -u'.DB_USER.' -p'.DB_PASS.' --default-character-set=latin1 -N '.DB_NAME.' | gzip > '.$backup_file;
                  exec($command);
                  

                  然后你可以执行一个 sftp 到远程服务器.

                  You could then exec an sftp to the remote server.

                  您可以类似地使用 exec() 和 linux 压缩来处理文件夹.

                  You could do the file folders similarly using exec() and linux zipping.

                  这篇关于PHP中的网站备份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <bdo id='99kiu'></bdo><ul id='99kiu'></ul>

                      <small id='99kiu'></small><noframes id='99kiu'>

                      • <i id='99kiu'><tr id='99kiu'><dt id='99kiu'><q id='99kiu'><span id='99kiu'><b id='99kiu'><form id='99kiu'><ins id='99kiu'></ins><ul id='99kiu'></ul><sub id='99kiu'></sub></form><legend id='99kiu'></legend><bdo id='99kiu'><pre id='99kiu'><center id='99kiu'></center></pre></bdo></b><th id='99kiu'></th></span></q></dt></tr></i><div id='99kiu'><tfoot id='99kiu'></tfoot><dl id='99kiu'><fieldset id='99kiu'></fieldset></dl></div>

                      • <legend id='99kiu'><style id='99kiu'><dir id='99kiu'><q id='99kiu'></q></dir></style></legend>

                            <tbody id='99kiu'></tbody>

                          <tfoot id='99kiu'></tfoot>