Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate EC2 backups to S3 #5

Open
4 tasks
waldoj opened this issue Sep 17, 2015 · 7 comments
Open
4 tasks

Automate EC2 backups to S3 #5

waldoj opened this issue Sep 17, 2015 · 7 comments

Comments

@waldoj
Copy link
Member

waldoj commented Sep 17, 2015

  • entire server
  • entire application directory
  • each Docker container
  • ckanapi-generated site backups
@waldoj
Copy link
Member Author

waldoj commented Sep 18, 2015

We might be able to add redundancy by storing the data on S3 (per #6).

@waldoj
Copy link
Member Author

waldoj commented Sep 18, 2015

Seems to me like a useful backup function would be running ckanapi full-site backups every 24 hours, and saving them on S3. I'm not sure how one would go about scripting that centrally, but perhaps that's a cron job that needs to be included in each Docker instance.

@waldoj
Copy link
Member Author

waldoj commented Sep 18, 2015

I suppose I've got two goals here. The first is internal redundancy, so that's easy to get back up and running if something blows up on the server. The second is client redundancy, so that if I'm hit by a bus at the same time that the AWS hosting facility is hit by a meteor, clients have a method of getting their data.

@mafintosh
Copy link

AWS has a way to snapshot an entire instance into an AMI that can be stored on S3. This requires halting the instance for a few seconds though.

@waldoj
Copy link
Member Author

waldoj commented Sep 18, 2015

I've been using ec2-automate-backup, which seems to work pretty well, but I suspect there are more moderns methods of accomplishing this. :)

@waldoj
Copy link
Member Author

waldoj commented Sep 18, 2015

BTW, @mafintosh @maxogden and @Karissa, I have no idea why this repo has all of y'all following it by default. GitHub permissions confuse me. Obviously, you're welcome to do so, but please don't feel any obligation—it's in no way intentional!

@waldoj
Copy link
Member Author

waldoj commented Nov 19, 2015

Note that the site data is stored in /home/ubuntu/.datacats/multisite/sites, which is weird but OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants