Hardly anyone hosts their own web servers anymore, and hosting space is cheaper than ever. If you're using shared hosting, rather than a dedicated server, you won't have root access and can't directly follow our rsync setup tutorial.
If you'd like a few tips and tricks to getting using your EVBackup account with shared (non-root) hosting space, read on.
Here are the services that your webhost needs to be able to support in order to backup to your EVBackup account:
Put simply, this is a list of required skills that you need to have to be able to effectively setup and manage backing up your hosted web site to your EVBackup account:
mkdir yellow_pages; cat > yellow_pages
Each of these items can be backed up with it's own rsync script, or as separate directives in a single script. Either way works — it all depends upon how much data you have and how often it needs to be backed up. For example, if the source code of your web pages doesn't change all that often — but your database changes daily — then you might want to backup your web pages once per month and your databases daily.
Here are some common problems that people encounter when backing up their hosted websites to their EVBackup accounts. If you need further help, please let us know: email@example.com
This is the most common problem you're likely to run into; if you're on a shared hosting server you almost certainly won't have root access. There are two changes that need to be made to our tutorials:
sudo mkdir /backup
Some web hosts don't have rsync and cron readily available to you; while others don't have rsync and cron installed. Generally, you find out about this when you type rsync into a SSH terminal and the following is returned:
rsync: command not found
To find out if rsync, cron (or any other Unix tool) is installed, enter the following into the SSH shell.
If they are installed, you should see something similar to the following:
rsync: /usr/bin/rsync /usr/share/man/man1/rsync.1.gz
If they are found, then you can simply substitute the full path to the command:
sudo rsync -avz -e "ssh -i /backup/ssh_key" /data firstname.lastname@example.org
/usr/sbin/rsync -avz -e "ssh -i ~/backup/ssh_key" data email@example.com
Essentially, you'll configure an rsync script for each shared hosting account. However, you'll want to put each different account into a different folder on your EVBackup account.
For example, suppose that you have three accounts:
rsync -avz -e "ssh -i ~/backup/ssh_key" ~/public_html firstname.lastname@example.org:A
sudo rsync -avz -e "ssh -i ~/backup/ssh_key" ~/data email@example.com:B
sudo mysqldump -u dbuser -h localhost -p dbpass --all-databases > ~/backup/db/all.sql
sudo rsync -avz -e "ssh -i ~/backup/ssh_key" ~/backup/db firstname.lastname@example.org:C