|
Post by account_disabled on Jan 28, 2024 21:52:17 GMT -8
本文是与SiteGround合作创建的系列文章的一部分。感谢您对合作伙伴的支持,使 SitePoint 成为可能。 很少有人关心备份,直到为时已晚。问题是“我们有备份吗?” 仅在发生灾难性损失后才会提出。备份是必不可少的。如果你没有做好准备,那就准备失败吧。 以下是备份成功的五个步骤: 教育你的老板/客户 如果他们了解网络开发的技术细节,他们就不需要你了。用简单的货币术语来解释这种情况,例如,如果我们的服务器磁盘今天崩溃了,我们可能会失去一切。重建系统需要 M 个月的时间,成本为 X 美元,我们可能会损失 Y 美元的业务。实施一个可行的备份系统将花费 Z 美元,我们将在 N 小时内返回。我假设你已经吓坏了你的老板/客户,他们愿意继续。 确定需要备份的内容 备份 WordPress 系统有点复杂,因为它取决于特定的文件和数据库。仅当您拥有两者的最新副本时,备份才可行。 实施适当的备份解决方案 这将取决于 WhatsApp 号码数据 您正在使用的技术和您提供的服务。例如,每周备份可能适合每月接收几次更新的博客。最坏的情况是,您可能会丢失一两篇文章。基于 WordPress 的在线商店可能需要持续备份以确保客户订单不会丢失。 自动化! 备份应该从人的手中夺走。考虑一个需要每天单击一次来启动备份的系统。你一开始的初衷是好的,但很快就会变成一件苦差事。当你去度假时会发生什么?如果你离开公司怎么办?计算机擅长调度——让它们来处理工作。 验证并测试您的备份 您的系统仅与上次成功备份一样好。 理想情况下,您应该自动验证备份的完整性,将备份文件移至异地,定期测试恢复过程,并将以前的备份保留一段合理的时间(通常是三个旧版本)。 您可以在 SitePoint 的课程“如何保护您的 WordPress 网站”中了解有关手动轻松备份 WordPress 网站的更多信息,您可以在下面预览该课程。有关 WordPress 的更多信息,请查看我们关于构建自定义 WordPress 主题的综合 WordPress 课程。 组件 WordPress 组件有不同的备份要求。 WordPress 安装文件 您可能从wordpress.org 的存档中下载了 WordPress 安装程序。它包括以下文件和文件夹: 地点 描述 自述文件和许可证文件 主要的 WordPress 控制面板代码 库和第三方组件 主题、插件和媒体文件 您永远不需要备份默认的 WordPress 文件。
|
|