Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have my website hosted on rackspace cloud server . i need to make backup of code + database of my cloud site. Please give me link of any documentation which suggests steps to perform this or link to alternative method so i can achieve this

share|improve this question
1  
What DBMS are you using? In most cases there is some kind of "replication" functionality built in. As for back-ups of code, start with rsync. It is very easy to have incremental back-ups to a remote NFS volume. – dsljanus Sep 4 '13 at 14:29
    
Where do you want your code backed up to? Where is your code located on the server? – Kyle Kelley Sep 4 '13 at 17:40
    
i am using php+mysql in website. and i want to backup code+files+db on server only(download also if possible in zip) so that i can restore it later if needed. – Dashrath Sep 4 '13 at 21:31

You have 2 options here:

  1. Leverage the Rackspace Cloud Backup solution
  2. Write a multi part custom backup script (mysqldump to disk, zip up files plus backup files, rsync/ftp/sftp the file to another location).

For the Rackspace Cloud Backup option, I'd suggest checking out the following documentation:

http://www.rackspace.com/knowledge_center/article/rackspace-cloud-backup-overview

There are links for installing the agent, which will then allow you to specify a backup configuration within your MyCloud portal.

Option 2 is a bit more involved and will require custom shell scripting. One starting point may be:

http://www.noupe.com/how-tos/10-ways-to-automatically-manually-backup-mysql-database.html

share|improve this answer

Rackspace Managed SysOps uses our Cloud Backup tool for web content and Holland for MySQL backups. Make sure to include the files which Holland creates in your Cloud Backup config.

Cloud Backup does not create a "zip" which you could download locally, but it does let you restore to any of your Cloud Servers (after which you could make a zip if you like).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.