Ask HN: How to stop a hacker from deleting your off-site backups?
I'm trying to come up with a half-decent backup strategy for a web server.
The strategy so far is to store backups locally on the server and have a cron job copy the latest backups over to an Amazon S3 bucket daily.
To do this, Amazon S3 user credentials would be stored on the web server.
If the web server gets hacked, the hacker would have access to the web server and the Amazon S3 credentials. With this they could delete all local and off-site backups.
Anyone got a good way of keeping backups on S3 and protecting themselves from this scenario?