大网数据广告活动
服务器运维问答

Best way to backup a WordPress site on EC2 instance

· 52CE 我爱测

My WordPress site is sitting on a single EC2 instance. My site has 60GB worth of files and a 800MB database size. My site is running out of space just by running the Duplicator plugin to back it up. What would be your recommended…

问题原文

原帖链接 · xesoh43966 · CC BY-SA 4.0

My WordPress site is sitting on a single EC2 instance. My site has 60GB worth of files and a 800MB database size. My site is running out of space just by running the Duplicator plugin to back it up. What would be your recommended alternative? EBS snapshot? AMI? etc?

UPDATE: I'd like to keep the backup files remotely.

已采纳解答

原帖链接 · Tim · CC BY-SA 4.0

EBS Snapshots are essential. They give you a quick way to restore your instance to a known good state if something happens to it. I suggest using Lifecycle Manager in the AWS EC2 console, you could take snapshots nightly or weekly and keep them for as long as you think necessary, depending on your RPO / recovery point objective. Note that EBS snapshot costs start to add up quickly, even though they're meant to deduplicate blocks across your snapshots.

An AMI is just an EBS snapshot with a bit of metadata about your instance. No real need.

For an offsite backup what I do is:

  • Run a MySqlDump every night
  • Run the open source Restic backup tool configured to store MySQL backups and the Wordpress files to an offsite location each night. You can have the repo on B2, S3, Azure, Google, etc, details here.

An essential part of backups is doing regular restore tests.

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

资料来源与适用范围

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

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

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