Small Drupal database backup, MySQL backup policy sharing for large sites, and drupal Database Backup
Simple backup policy for small and medium sites
For small and medium-sized websites based on drupal, we can use the backup_migrate module, which
Who's going to help? Modify the current code backup MySQL PHP code requires backup to local
I use the web-based PHP backup MySQL data code, the article title is: Back up the MySQL database PHP code (a table a file). The code at the bottom of the
Xtrabackup IntroductionXtrabackup is a free database hot-backup software Percona open source, which can back up non-blocking databases of InnoDB databases and XTRADB storage engines (as well as a table lock for MyISAM backups); The Mysqldump backup
Xtrabackup IntroductionPercona Xtrabackup is open source free MySQL database hot backup software, it can be InnoDB and XTRADB storage Engine database non-blocking backup (for MyISAM backup also need to add a table lock). Xtrabackup supports all
Named Directory + file nameInset into#-*-Coding:utf-8-*-#!/usr/bin/env python############################################################# This Python script was used for MySQL database backup# using Mysqldump utility.################################
Xtrabackup backup MySQLMysqldump is based on a logical backup, which is equivalent to re-executing the SQL statement. Xtrabackup is equivalent to a physical backup of a file.Installation dependencieswget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_
The usual, prologue, just started with mysqldump, backup 100g+ database, plus server busy, backup speed like snail, so look for more efficient backup method. Online are said to use Xtrabackup more suitable for backup large database, and backup
Http://www.kankanews.com/ICkengine/archives/194.shtml
Using MySQL for database backup, but also a very formal database backup method, and other database server has the same concept, but have not thought, MySQL will have a more concise use of
PHP/*program function: MySQL database backup function*/Ini_set(' Max_execution_time ', ' 0 ');Ini_set(' Memory_limit ', ' 1024M ');//Plus these two lines, you can back up big data, last night measured a company's 600M table, can soon be backed up
Original: http://www.drupal001.com/2014/02/percona-xtrabackup-mysql/Xtrabackup IntroductionPercona Xtrabackup is open source free MySQL database hot backup software, it can be InnoDB and XTRADB storage Engine database non-blocking backup (for MyISAM
One, backup and import of database1), Backup of the database1. Export the entire databaseMysqldump-u user name-p database name > exported file nameExample:mysqldump-u dbadmin-p myblog >/home/zhangy/blog/database_bak/myblog.sql2. Export a
A small number of databases we can make a full backup every day because it won't take much time, but when the database is large, we are less likely to make a full backup every day and change it to a weekly full backup, an incremental backup like
Scheduled backup MySQL
Put/etc/cron.hourly/
Copy Code code as follows:
#!/bin/bash
Dump=/usr/local/webserver/mysql/bin/mysqldump
out_dir=/data1/backup/
Db_name= database name
db_user= Database User
db_pass= Database
Original: http://www.drupal001.com/2014/02/percona-xtrabackup-mysql/Xtrabackup IntroductionPercona Xtrabackup is open source free MySQL database hot backup software, it can be InnoDB and XTRADB storage Engine database non-blocking backup (for MyISAM
Originally can be done with the Shell function, now learn python, copy the changes. Complete the database backup.
#!/usr/bin/python#-*-coding:utf-8-*-#MYSQL backimport string,time,os,datetimeimport sys,logging , Statimport subprocess#os.environ.
1. Set Timer: Terminal typing: crontab-e command2, then write to * * * */home/db_bak_file/dbbak.sh >>/home/db_bak_file/backdbinfo. This statement works by running the script under/home/db_bak_file/dbbak.sh at 23 o ' Day, and keeping the log in
Today the boss let backup database can not do their own toss it, the following summary of the results of the toss.Database backup ideas:1. Scripting2. Execute the script haha, is not very simple, open the refrigerator, put the elephant, close. Below
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.