大网数据广告活动
网站运营与故障问答

What exactly should I backup in a WordPress site?

· 52CE 我爱测

I just uploaded my multisite WordPress site and I wanted to know what exactly should I backup from my Cpanel? Someone told me just backing up wp-content and your databases should be enough. Is that true? I have a complete backup …

问题原文

原帖链接 · Poorya Zeynalzadeh · CC BY-SA 3.0

I just uploaded my multisite WordPress site and I wanted to know what exactly should I backup from my Cpanel?

Someone told me just backing up wp-content and your databases should be enough. Is that true?

I have a complete backup of my home directory and my public_html folder and as long as I'm not making any changes in system (like upgrading wordpress core) what should I backup?

I'm sure I don't need a full backup when I just publish new articles or a new blog gets created in my multisite.

已采纳解答

原帖链接 · Steve · CC BY-SA 3.0

wp-content and your databases is almost enough. I would also include wp-config.php

But take note that sometimes just restoring everything doesn't always work. It should, I can't explain why it doesn't. But sometimes things go wrong.

You could also consider one of the backup plugins, but whatever your solution, be sure to get your backups offsite. Don't leave them on the server, keep them on your home PC or something like drop box. If your user account disappears and your backups are on the server, you may as well have never done them.

[UPDATE] When doing a backup and don't plan to do a restore in the near future, it might be a good idea to back up your entire WP install. For example if you are on the current version 4.6.1 and there is a major upgrade to say version 5.0, that includes a database change, then your restore may not work on the new WP version.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。