amazon web services - Backup strategy for large number of files -


i working on web application handle close million image files (< 100k in size), uploaded users. application relies on sql database references images. images held on local disk on web application server, looking @ possible solutions backup these images. i'd avoid rsync or creation of single-file archives these slow number of files being considered. complete picture, database backed on nightly basis.

the 2 options i've far identified following:

  1. create web service on amazon ec2 receives image assets web application @ same time being uploaded users web application. received assets stored on ebs drive snapshotted on nightly basis @ time coincide database backup on database server. ensures data integrity between image backup , database backup.

  2. upload images amazon s3 @ same time uploaded web application.

the s3 option seems simpler , more scalable solution, concern not possible take snapshot backups of image library coincide database backups.

in case of database failure, not possible restore consistent application state.

are there ways go limitation?

any other suggestions apart 2 outlined above?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -