Backing up WordPress on Ubuntu to S3
Right… So, my blog is currently living on an Ubuntu box here in the house and is running 3 of my blogs (this one, The Angry Viking and Tiernans Photography Blog). With all the news about WordPress being under attack, i though i better share some of my scripts i use for Backing up the sites…
- i am using S3Sync for the Upload to S3…
- The code for the Script is available on this Gist. It was slightly modified (Removing my DB username and passwords, and only backing up one DB and Directory).
- I want this to run every night, but at the moment it is kicked off manually…
- There should be a clean up part at the end deleting the uploaded file… Ideally the uploader should check if the upload file was finished before deleting also…
If there is anything anyone can see that could be changed, please leave a comment.
blog comments powered by Disqus