The article introduced two kinds of database record code, one is our PHP write common database backup class, the other is for Linux friends to provide an automatic timing backup MySQL database code, the need for students can refer to.
Save the following PHP code as a backdata.class.php file
The code is as follows
Copy Code
/*** Simple one MySQL
Misunderstanding #20: After the log backup chain is damaged, a complete backup is required to restart the log chain.
Error
Transaction Log backup backs up all transaction logs since the last transaction log backup (if there is no log backup, it starts from the last full
During traditional Oracle backup, database files are backed up by copying files from the operating system. The backup granularity is data files, which may be large,
During traditional Oracle backup, database files are backed up by copying files from the operating system. The backup granularity is data files, which may
1. Separate backup1. Classic full-database backup: backup as compressed backupset database include current controlfile plus archivelog delete all input;2. tablespace: name of the backup tablespace;3. Data File: backup datafile n; (n: Data File No. select file_name, file_id, tablespace_name from dba_data_files ;)4. Cont
Scripts are placed in the/home/user/mysql tutorial _backup.sh
Crontab
# crontab-l
# m H Dom Mon Dow command
* * */home/user/mysql_backup.sh
The script is as follows
#!/bin/sh
# mysql_backup.sh:backup MySQL databases and keep newest 5 days backup.
#
# Last updated:20 March 2006
# ----------------------------------------------------------------------
# This are a free shell script under GNU GPL version 2.0 or above
# Copyright (c) 2006 Sam T
Tags: and through director extended get database int backup technology shareOne: Handwritten tsql script 1, automatic backup Weekly full Backup of database, set Schedule Interval to weekly UseMasterGo
Declare @FileName nvarchar( the)
Set @FileName =N'D:\SQLBackupFolder\TestDB_FullBackup_'+CONVERT(nvarchar(Max),getdate(), the)+N'. bak'
Tags: mysql automatic hot standbyPros: Hot backup, no impact on business, incremental backup, remote backup.Purpose: Automatically package backup to remote 10.0.0.111 backup serverPremise:1. Installing XtrabackupYum Install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpmYu
Label:One, cold backup A cold backup occurs when the database has been shut down properly and provides us with a complete database when it shuts down normally. Cold backup is a statement that copies critical files to another location. The fastest and safest method for backing up Oracle information for cold backups. The advantages of cold
In SQL Server 2000, assume that we have a database of: Test, which now requires it to be automatically backed up 19:00 every day, and in the event of a database error in the future, we can restore the database to any backup point in time with a backup file.Backup steps:1. In SQL Server Enterprise Manager, register the server where the database resides, note that you want to use the SA user name and password
Logical backup and physical backup have their own advantages and disadvantages. Generally, physical Backup recovery is faster, occupies a large space, and logical backup is slower.
Logical backup and physical backup have their own
We can perform full backup for a small number of databases every day, because it does not take much time. However, when the database is very large, we are unlikely to perform a full backup every day, in addition, it is changed to a weekly full backup, and an incremental backup every day is similar to this
Preparations: lftp must be installed in VPS in advance. lftp is powerful. CentOS directly executes: yuminstalllftp and Debian execute: apt-getinstalllftp. You need to create the/home/backup/directory on VPS and the backup directory on FTP. If there are not many VPS databases, you can use Godaddy free space (10 GB space, 300
Preparations:
Lftp needs to be installed in VPS in advance. lftp is powerful and can
Usage type: the system load is concentrated in a certain period of time, such as 8 hours during the day, and is usually idle at night. Therefore, data can be backed up at night.
It corresponds to full-Database Backup:
Http://blog.csdn.net/jacson_bai/article/details/39636915
1. env:IP Address: 10.244.171.180/181Oracle Database Oracle 11.2.0.3OS RHEL 5.5Backup toos: rman, Shell, crontab
2. Backup Plan (increm
Full backupThe most common and simple backup is to directly use the copy command to copy the version library directory to the backup directory. However, this is not a safe method, because if the version library changes during the copy process, the backup results will be inaccurate and the backup function will be lost,
Server:AliyunRequirements:For the WWW directory, perform a backup daily 1 o'clock in the morning to name the folder on today's dateCreate Wwwbak directories and bakwww.sh files in the Alidata folder as follows:Create a new Wwwbak folder and execute the following command:# mkdir Wwwbak# Chmod-r 777 WwwbakTo create a new bakwww.sh file, execute the following command# VI bakwww.shThe contents of the document are as follows:cp-af/alidata/www//alidata/wwwb
Use Xtrabackup to do a full backup. After we have installed Xtrabackup, it gives us a few command-line tools where we back up the command to use is Innobackupex, which is a script that encapsulates several xtrabackup of several command lines internally, Makes the Innobackupex very easy to use first go to the official website to download the RPM package after installation can be used this tool is generally used for local
I. Hot Backup
Cold backup occurs when the database is shut down normally. When the database is shut down normally, it will provide us with a complete database. This article describes how to copy key files to another location during cold backup. The fastest and safest way to back up Oracle information during cold backup
I. Cold backup
Cold backup occurs when the database is shut down normally. When the database is shut down normally, it will provide us with a complete database. This article describes how to copy key files to another location during cold backup. The fastest and safest way to back up Oracle information during cold backup
First, the service environment(1), WEBserver (192.168.10.130); Backserver (192.168.10.129)(2), Backserver Server deployment, install required software, and start(3), set up the system backup user backup (both Web server and backup server are established users)[[email protected] ~]# useradd backup; Echo
The following articles mainly introduce the offline and online full backup of DB2 and the actual operation steps of Incremental backup and recovery, the following describes the offline and online full backup of DB2 and the actual operation steps of Incremental backup and recovery. We hope this will help you in your fut
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.