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…

  1. i am using S3Sync for the Upload to S3…
  2. 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).
  3. I want this to run every night, but at the moment it is kicked off manually…
  4. 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.