问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
