r/cloudcomputing • u/wtfthisishardaf • Jun 02 '23
Anyone backing up S3?
Apologies if this isn’t the right forum to ask this, but I’m looking for some pointers to create backups of some critical files that we have in S3.
We have 2 large S3 buckets that receive data from RDS, and this is fed into data lake which stores some of that information in tables, once again in S3.
I think it’s a requirement that we back these up (for compliance reasons). What’s the best way to do this?
Things I don’t want to do—
- Replicate (it gets too large / expensive)
- Version / time travel (this is too difficult to manage)
Any pointers appreciated.
10
Upvotes
7
u/NeuralNexus Jun 02 '23
How critical is this content?
(s3 is pretty reliable. I'd need to be convinced of the importance of data before replicating a VERSION CONTROLLED s3)
1
u/effata Jun 02 '23
Versioning difficult to manage? It’s literally a single flag on your bucket… My go to setup for critical data is s3 replication to a bucket in a separate region, with versioning on both sides and a lifecycle rule on the receiving end moving the data to IE/Glacier. It doesn’t get much easier and cheaper than this of you wanna stay onside AWS.
If you wanna selectively copy data, you could set up S3 events and filter on only the relevant files, then copy them somewhere else with a lambda or whatever. Get a cheap VPS and store an offsite backup there?
1
u/Worzel666 Jun 02 '23
Have you looked into AWS Backup? It might get quite expensive though!
1
u/oh-my-cloud Jun 04 '23
Data in S3 is very reliable. You have six copies of your data in a region with 3 AZs. They also auto-repair any corrupted blocks.
If you still have to back up for compliance reasons, you should consider moving it to a different cloud. This gives you an excellent reliability score. Oracle Cloud offers much cheaper Object Storage. You can use encrypted rsync between S3 and OSS. This way, even if a AWS region goes down, your data is still accessible on OCI OSS.
1
u/SquiffSquiff Jun 02 '23
It seems like you're not sure of what your requirement is. I would advise to get clarity there first.
1
u/simple-like-one Jun 06 '23
Like other's have said, S3 is fault tolerant for AZs going down. There's at least 3 copies of data across the AZs within a data center so it can handle 2 AZs going down. So you only need to backup your data if you want to handle more faults, such as a data center going down. If you want to handle data centers going down, then you probably want cross region (data center) replication.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/disaster-recovery-resiliency.html
If you want to backup your data or snapshots for long length of time with infrequent restore, then using glacier is the solution for you. You can set up configuration in S3 to copy/move your data to glacier and have those backups delete automatically after some time. Storage in Glacier is cheaper than S3.
https://aws.amazon.com/s3/storage-classes/glacier/
S3/Glacier support pretty much all standards and compliance requirements so you should be able to create a solution for your use case pretty quickly.
Good luck!