If you are a backup maniac like me, you like to have multiple ways (and on different locations) to backup all your data.
Even if on bluehost I’ve some other services making backups of my data, I’ve also created a script executed by my home computer every night to extract mysql databases to a local NAS.
exec 6>&1 # Link file descriptor #6 with the standard output
exec > $LOGFILE # stdout sent to $LOGFILE
#Check script arguments
if [ $# -ne $EXPECTED_ARGUMENTS ]
echo "No arguments supplied."
echo "Script usage:"
echo " $0 bluehost_db_username bluehost_db_password target_folder dest_mail"
echo "Starting Bluehost Backup: $(date +"%d/%m/%Y %H:%M:%S")"
echo "Backup All Bluehost DBs"
ssh -C firstname.lastname@example.org "mysqldump --opt --compress --all-databases -u $1 --password='$2' | gzip -9 -c" > $FILE_NAME
sudo mv ./$FILE_NAME $3
echo "Backup Completed: $(date +"%d/%m/%Y %H:%M:%S")!"
mail -s "Bluehost Backup Report" $DEST_MAIL < $LOGFILE
exec 1>&6 6>&- # Restore stdout and close file descriptor #6.
rm -f $LOGFILE
echo "Backup Completed!"
The script make an ssh connection to your Bluehost account, execute the mysqldump and directly download the compressed result (no space is required on your Bluehost account to execute the backup). Then — (Read more)
After some requests from Nikos on the Trac post I noticed that the article I wrote to use Trac on BlueHost cannot work anymore. As I said in this post BlueHost decided to remove the Python 2.6 installed by default, and the previous guide was based on that version of Python.
Anyway thanks to Nikos for this new post
After the installation of version 2.7.2 (or the one you prefer) of python as you can see in the previously linked article, it’s really simple to install Trac too.
First of all you “need” to — (Read more)
After I discovered the presence of Python 2.6 on BlueHost, they decided to remove this installation by default. Fortunately it’s really simple to build Python from sources and install it (and naturally, the good thing is that all required packages to build Python are installed on BlueHost servers).
So here the steps to follow to build and install the python version you prefer (tested with Python 2.6 and 2.7.x).
tar xzvf Python-2.7.2.tgz
and, just a note, the package is well done and it will create a Python subfolder
After this we can already configure and install — (Read more)
After the installation of git on my bluehost account I tried to figure out a good way to create and access to my git repository. Even if I thought the Apache bridge was the best way to access to git files, I found that on bluehost, the best and fastest way is directly using the ssh protocol.
So here explained the method I choose to create and use a private git repository on my shared account.
First of all, to simplify the repository creation process I added to .bashrc file a new function:
if [ -z $1 ]; then
echo "usage: $FUNCNAME project-name.git"
git --bare init
git --bare update-server-info
cp hooks/post-update.sample hooks/post-update
chmod a+x hooks/post-update
The operations to execute — (Read more)
I’m going ahead testing installation of tools I need on my shared host. Today I take my time to test Trac 0.12, an enhanced wiki and issue tracking system for software development.
Naturally, using this version require Python 2.6 (that fortunately I’ve ready-to-use on BlueHost), and, like the Trac guide says, you need Genshi and Babel installed to use it. So, this time, we will try to use easy_install to simplify our installation. With easy_install in fact, you can just specify the name of — (Read more)