Results 1 to 10 of 13
-
18th May 2011, 06:13 PM #1OPMember
Creat full backup with MySQLDumper ?
I'm using MySQLDumper. Please tell me how to creat full backup (Database & Files). Thank you so much !!!
3xupdate Reviewed by 3xupdate on . Creat full backup with MySQLDumper ? I'm using MySQLDumper. Please tell me how to creat full backup (Database & Files). Thank you so much !!! Rating: 5
-
18th May 2011, 08:47 PM #2Respected Member
It does not do your files only your databases. Just click the backup and it is all there.
You can use cpanel to backup your files or just use corn to run a tar/gz of your public_html folder and sub folders.
-
18th May 2011, 08:52 PM #3MemberWebsite's:
felonygames.comBe Careful when using the Automated backup that's in your Cpanel . Its notorious for for not getting all the files.
Your best bet is to go into the cpanel for the DB backup , but use FTP software such as filezilla to backup your files to your hard drive.
-
19th May 2011, 10:36 AM #4OPMember
Everything is OK if I use Cpanel but I'm using Kloxo, not using Cpanel
-
19th May 2011, 03:22 PM #5Respected Member
Be sure to use dumper to create nightly backups of your database if it is busy.
Just run an ssh command to backup the files only when files change.
tar -czvf /mybackup.tgz / --atime-preserve --same-owner --preserve-permissions
-
19th May 2011, 03:59 PM #6Respected MemberWebsite's:
FreshWap.com KWWHunction.comsing mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command. In this article, let us review several practical examples on how to use mysqldump to backup and restore.
For the impatient, here is the quick snippet of how backup and restore MySQL database using mysqldump:
backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql
1. Backup a single database:
This example takes a backup of sugarcrm database and dumps the output to sugarcrm.sql
# mysqldump -u root -ptmppassword sugarcrm > sugarcrm.sql
# mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
--
-- Table structure for table `accounts_contacts`
--
DROP TABLE IF EXISTS `accounts_contacts`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `accounts_contacts` (
`id` varchar(36) NOT NULL,
`contact_id` varchar(36) default NULL,
`account_id` varchar(36) default NULL,
`date_modified` datetime default NULL,
`deleted` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `idx_account_contact` (`account_id`,`contact_id`),
KEY `idx_contid_del_accid` (`contact_id`,`deleted`,`account_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `accounts_contacts`
--
LOCK TABLES `accounts_contacts` WRITE;
/*!40000 ALTER TABLE `accounts_contacts` DISABLE KEYS */;
INSERT INTO `accounts_contacts` VALUES ('6ff90374-26d1-5fd8-b844-4873b2e42091',
'11ba0239-c7cf-e87e-e266-4873b218a3f9','503a06a8-0650-6fdd-22ae-4873b245ae53',
'2008-07-23 05:24:30',1),
('83126e77-eeda-f335-dc1b-4873bc805541','7c525b1c-8a11-d803-94a5-4873bc4ff7d2',
'80a6add6-81ed-0266-6db5-4873bc54bfb5','2008-07-23 05:24:30',1),
('4e800b97-c09f-7896-d3d7-48751d81d5ee','f241c222-b91a-d7a9-f355-48751d6bc0f9',
'27060688-1f44-9f10-bdc4-48751db40009','2008-07-23 05:24:30',1),
('c94917ea-3664-8430-e003-487be0817f41','c564b7f3-2923-30b5-4861-487be0f70cb3',
'c71eff65-b76b-cbb0-d31a-487be06e4e0b','2008-07-23 05:24:30',1),
('7dab11e1-64d3-ea6a-c62c-487ce17e4e41','79d6f6e5-50e5-9b2b-034b-487ce1dae5af',
'7b886f23-571b-595b-19dd-487ce1eee867','2008-07-23 05:24:30',1);
/*!40000 ALTER TABLE `accounts_contacts` ENABLE KEYS */;
UNLOCK TABLES;
If you want to backup multiple databases, first identify the databases that you want to backup using the show databases as shown below:
# mysql -u root -ptmppassword
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| bugs |
| mysql |
| sugarcr |
+--------------------+
4 rows in set (0.00 sec)
# mysqldump -u root -ptmppassword --databases bugs sugarcrm > bugs_sugarcrm.sql
# grep -i "Current database:" /tmp/bugs_sugarcrm.sql
-- Current Database: `mysql`
-- Current Database: `sugarcrm`
The following example takes a backup of all the database of the MySQL instance.
# mysqldump -u root -ptmppassword --all-databases > /tmp/all-database.sql
In this example, we backup only the accounts_contacts table from sugarcrm database.
# mysqldump -u root -ptmppassword sugarcrm accounts_contacts \
> /tmp/sugarcrm_accounts_contacts.sql
- –opt is a group option, which is same as –add-drop-table, –add-locks, –create-options, –quick, –extended-insert, –lock-tables, –set-charset, and –disable-keys. opt is enabled by default, disable with –skip-opt.
- –compact is a group option, which gives less verbose output (useful for debugging). Disables structure comments and header/footer constructs. Enables options –skip-add-drop-table –no-set-names –skip-disable-keys –skip-add-locks
How To Restore MySQL database
1. Restore a database
In this example, to restore the sugarcrm database, execute mysql with < as shown below. When you are restoring the dumpfilename.sql on a remote database, make sure to create the sugarcrm database before you can perform the restore.
# mysql -u root -ptmppassword
mysql> create database sugarcrm;
Query OK, 1 row affected (0.02 sec)
# mysql -u root -ptmppassword sugarcrm < /tmp/sugarcrm.sql
# mysql -u root -p[root_password] [database_name] < dumpfilename.sql
This is a sleek option, if you want to keep a read-only database on the remote-server, which is a copy of the master database on local-server. The example below will backup the sugarcrm database on the local-server and restore it as sugarcrm1 database on the remote-server. Please note that you should first create the sugarcrm1 database on the remote-server before executing the following command.
[local-server]# mysqldump -u root -ptmppassword sugarcrm | mysql \
-u root -ptmppassword --host=remote-server -C sugarcrm1
[Note: There are two -- (hyphen) in front of host]
Credits: Ramesh Nataranjan,Dear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
-
20th May 2011, 01:00 PM #7OPMember
Thanks Lock Down & CyberAff
-
20th May 2011, 02:18 PM #8Respected MemberWebsite's:
FreshWap.com KWWHunction.comyou're welcome 3xupdate
Dear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
-
20th May 2011, 03:01 PM #9Respected Member
You are welcome.
-
25th May 2011, 08:51 AM #10Banned
hi
thanks for info
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Cron command for Full Website Backup?
By LEVAC109 in forum Technical Help Desk SupportReplies: 1Last Post: 27th Jan 2012, 08:57 AM -
How can I create a full system image backup within ubuntu ?
By ahmadka in forum Technical Help Desk SupportReplies: 4Last Post: 3rd Aug 2011, 08:30 AM -
Is it possible to extract the database from Full Backup?
By vorazeal in forum phpBBReplies: 10Last Post: 15th Sep 2010, 04:46 PM -
How to restore a full backup?
By ceekeigh in forum vBulletinReplies: 6Last Post: 23rd Oct 2009, 01:13 AM -
Selling Warez Site With Domain + Full Ftp Backups + SQL Backup
By king of kings in forum Completed TransactionsReplies: 22Last Post: 20th Jan 2009, 02:01 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...