Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2011 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0228fef1aad25bf054e0 to your computer and use it in GitHub Desktop.
Save anonymous/0228fef1aad25bf054e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
cloudfuse /mnt/cloudfiles
mysqldump -u root "-p" --all-databases > /home/all-databases.sql
dayOfWeek=$(date +%a)
tar -jcvf "/mnt/cloudfiles/backup/server-home-$dayOfWeek.tar.bz2" /home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment