hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : How to create full backup?
Reply

VPS Hosting Virtual private server discussion and vps hosting solutions. Review VPS hosting providers and offer advice on virtual web hosting solutions. If your service is unavailable, please click here.
Forum Jump

How to create full backup?

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2008, 12:07 PM
bigu_c bigu_c is offline
WHT Addict
 
Join Date: Nov 2007
Posts: 115

How to create full backup?


My VPS has no control panel.

How to create a full backup now?

Thanks!

Reply With Quote


Sponsored Links
  #2  
Old 07-01-2008, 12:15 PM
DevMonkey DevMonkey is offline
Web Hosting Master
 
Join Date: Jun 2006
Posts: 1,111
What exactly are you trying to backup?

All files? Files for a website or service being hosted? Some databases? An image of the entire machine?

This might help for people to help you

Reply With Quote
  #3  
Old 07-01-2008, 12:21 PM
bigu_c bigu_c is offline
WHT Addict
 
Join Date: Nov 2007
Posts: 115
I want to backup all file in /var/www/html

And mysql database

That all!

Thanks mate!

Reply With Quote
Sponsored Links
  #4  
Old 07-01-2008, 12:25 PM
TheSimpleHost-Nathan TheSimpleHost-Nathan is offline
The Webhost
 
Join Date: Jun 2008
Location: London, UK
Posts: 929
To backup all your current files in /var/www/html, log into your shell and use:

tar cpvf html_backup.tar /var/www/html

Are you using PHPMyAdmin or are you modifying MySQL via shell?

Reply With Quote
  #5  
Old 07-01-2008, 12:26 PM
PogiWeb PogiWeb is offline
We need coffee...
 
Join Date: Jan 2003
Location: U.S.A.
Posts: 3,906
After you backup your files where are you storing the files? I hope you have a offsite backup place. If you do have an offsite backup place just rsync everything under the "/" directory over.

__________________
PogiWeb LLC | sales@pogiweb.com | 1-704-464-8238
PogiWeb.com - The best VPS prices around with Instant Setups and Reseller Program!
Simply the best Shared, Reseller, Virtual Private Server and Dedicated Server Hosting Provider around!
Join us on Facebook!


Reply With Quote
  #6  
Old 07-01-2008, 01:03 PM
bigu_c bigu_c is offline
WHT Addict
 
Join Date: Nov 2007
Posts: 115
I don't have phpmyadmin, how to backup mysql database now?

Thanks everyone!

Reply With Quote
  #7  
Old 07-01-2008, 01:37 PM
DevMonkey DevMonkey is offline
Web Hosting Master
 
Join Date: Jun 2006
Posts: 1,111
There are various ways to backup what you would like to.

For MySQL databases, have a look at the "mysqldump" utility.

http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html

To backup database "db_a" with the user "name" to a file named "database.sql", do something like this in your shell:

Code:
mysqldump -uname -p db_a > database.sql
You will then be prompted to enter the users password a dump of the databse will be saved to "database.sql".

You could use the utility to backup all databases and other things. Have a look at the URL I gave above or just search Google

I'm assuming you're server is running on Linux or similar by the way, not Windows.

Reply With Quote
  #8  
Old 07-01-2008, 01:39 PM
WebbyCart WebbyCart is offline
Aspiring Evangelist
 
Join Date: Apr 2008
Posts: 438
You can also just backup the database files in /var/lib/mysql directory.

Regards,
Bobby

__________________
WebbyCart.com - Pushing Onwards
Server Management | Outsourced Hosting Support | Remote / Offsite Rsync Backup | Fully Managed Servers & Cloud VPS
sales@webbycart.com

Reply With Quote
  #9  
Old 07-01-2008, 02:56 PM
CoderJosh CoderJosh is offline
Web Hosting Master
 
Join Date: May 2008
Location: Germany
Posts: 674
I'd recommend using mysqldump as well.

The -A option might be useful for you, to dump all your databases.

Reply With Quote
  #10  
Old 07-04-2008, 02:04 AM
gplhost gplhost is offline
Web Hosting Master
 
Join Date: Aug 2004
Location: Shanghai
Posts: 1,440
Hi. The solutions above are not so good. Best is to use "automysqlbackup" and fix it in a cron job. It uses mysqldump internally, and will do a backup every day of all the database you ask it to. The most easy way for your case is to set it to dump in /var/www/html. Then use dirvish, on another server, that uses rsync to perform incremental backups. It does it smartly using hardlinks. That way, you don't only have a simple backup, you have a history of it. We use it, and we are more than happy with it: it's the perfect solution.

Thomas

__________________
GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel

Reply With Quote
  #11  
Old 07-04-2008, 10:55 AM
DevMonkey DevMonkey is offline
Web Hosting Master
 
Join Date: Jun 2006
Posts: 1,111
Quote:
Originally Posted by gplhost View Post
Hi. The solutions above are not so good. Best is to use "automysqlbackup" and fix it in a cron job. It uses mysqldump internally, and will do a backup every day of all the database you ask it to. The most easy way for your case is to set it to dump in /var/www/html. Then use dirvish, on another server, that uses rsync to perform incremental backups. It does it smartly using hardlinks. That way, you don't only have a simple backup, you have a history of it. We use it, and we are more than happy with it: it's the perfect solution.

Thomas
How can you claim the other MySQL backup solutions are not so good when they are the basis of your recommended solution? Obviously if the above solutions are the framework to your solution then they can be manipulated to work in the same way as the script(s) you are using.. I don't think it's a good idea to say they are "not so good" when the primary job they are doing, the actual storing of the database for backup, is exactly the same.

Reply With Quote
  #12  
Old 07-04-2008, 11:22 AM
gplhost gplhost is offline
Web Hosting Master
 
Join Date: Aug 2004
Location: Shanghai
Posts: 1,440
It's "not so good" because not incremental. My above solution, you are right, is an improvement over mysqldump & rsync. But look at what dirvish does, you will see that it's quite some work, it's not "just a basic rsync"! So, NO, it's not AT ALL exactly the same, I think you are mistaking.

Thomas

__________________
GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel

Reply With Quote
  #13  
Old 07-04-2008, 07:51 PM
ylsy ylsy is offline
Web Hosting Guru
 
Join Date: Jan 2006
Location: Sydney, Australia
Posts: 251
Quote:
Originally Posted by gplhost View Post
It's "not so good" because not incremental. My above solution, you are right, is an improvement over mysqldump & rsync. But look at what dirvish does, you will see that it's quite some work, it's not "just a basic rsync"! So, NO, it's not AT ALL exactly the same, I think you are mistaking.

Thomas
I actually don't think you can do incremental backups for MySQL database, except if you only backup the binary logs and "hopefully" they'll construct a fully working database when you play it back.

As of mysqldump, it is actually not very good when you have large databases. For MyISAM tables I think it actually locks the whole thing while doing back up. If you have a huge table that takes half a minute to copy out all records, you basically cannot insert any new row during that half minute.

You can also use mysqlhotcopy to copy out the DB files without locking. However you need to do it on the host which runs MySQL (whereas you can run mysqldump on a remote host).

--Scott

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Malwarebytes Launches Data Scan-and-Backup Service Web Hosting News 2013-05-07 14:51:03
BackupAgent Integrates Cloud Backup Platform with Citrix CloudPortal Web Hosting News 2012-09-18 16:14:43
DEMO VIDEO: Idera Continuous Data Protection (Part 1) Whir Tv 2012-09-12 18:03:59
New BackupAgent Version Simplifies Channel Delivery of Cloud Backup Solution Web Hosting News 2012-06-26 16:57:11
Web Host Korea Server Hosting Offers R1Soft Backup and Recovery Web Hosting News 2011-08-31 19:44:14


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?