Mysql4.0 is the backup script for the master database when the master database is started. mysql4.0 is an old version, but some enterprises that are used earlier are still using it. When creating a Master/Slave instance, especially when an online server creates a Master/Slave instance, ensuring data consistency is a big problem: for example, repeated Data Execution occurs when the slave database is created
Label::: Export data for specified service (ORCL) and password (PMIs) on remote machine (192.168.2.1) via exp command: The machine running the script must have Oracle @echo off @echo [data for backup PMIs system] Set hh=%time:~0,2% set HH=%HH: =0% set SID=127.0.0.1/ORCL set Backdir=d:\oracle_bak set Backfile=%backdir%\%date:~0,4%%date : ~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%:: @echo [Delete
#!/usr/bin/env python"This script is used for backup Directorys.Can backup a directory at a Time,and alsoYou can backup multiple Directorys at a time.‘‘‘Import TarfileImport OSImport Sys## The following lines is used to process the Directorys# to IS backed up#DIRS_SRC = Raw_input (' Enter directorys that which you want
Rem SVN version database backup script
Echo off
The REM subversion installation directory is set according to the actual svnclient installation directory.
Set svn_home = "D: \ Program Files \ svnclient"
The parent directory of all versions of REM is set according to the directory of the actual version library.
Set svn_root = "E: \ svnroot \ repository"
The Directory of the REM
The RMAN backup script in Windows is relatively simple. Let's look at the content.
1.ModifyRMANRelated Parameters
RMAN> show all;
RMAN> Configure controlfile autobackup on;
RMAN> Configure controlfile autobackup format for device type disk to 'd:/backup/% F ';
RMAN> exit;
After setting the parameters as above, the control file and spfile will be automatically ba
MySQL Incremental backup script (innobackupex)
1. in the online environment, I sometimes write a simple script for Incremental backup of the MySQL database.
2. Add an automatic task and execute it every hour or shorter.
#! /Bin/sh
# Author RuM
# Date 2015-07-10
BAKDIR =/tmp/mysqlbak
BAKDIR_FULL = $ BAKDIR/full
BAKDIR_A
Tags: Oracle automatic backupFirst, write the scriptvim/home/backup/oraclebk.sh#! /usr/bin
#路径名, specify the path of the backup
filepath=/home/backup/oracledata
#根据指定日期格式, define the backup database file name
filename= ' date + '%Y %m%d_%h%m "'
#切换至指定路径 and create a folder
CD $FILEPATH
mkdir $FILENAME
chmod 775 $FILE
DescriptionMySQL Database installation directory: C:\Program files\mysql\mysql Server 5.0MySQL Database storage directory: C:\Program files\mysql\mysql Server 5.0\dataMySQL Database backup directory: D:\MySQLdata_BakTo achieve the purpose: backup the MySQL database in the directory to the D:\MySQLdata_Bak directory, stored by date,And keep only the last 7 days of dataFor example:D:\MySQLdata_Bak\mysql\20120
Tags: rman scripting shell1, the database is fully prepared to the hard disk[[Emailprotected]scripts]$catrman_backup.shsource/home/oracle/.bash_ profilermantarget/log=/home/oracle/backup/backupall_rman.log2. Incremental backup ScriptLevel 0 increments[[Emailprotected]scripts]$catrman_backup_level0.shsource/home/oracle /.bash_profilermantarget/log=/home/oracle/backup
MySQL backup script in Linux:
#! /Bin/bash
# Mysql autobackup shell # write by tuspark.cn
# ------------------- User name and password related to the database, database name to be backed up, backup directory, etc.
Dbuser = root
Dbpasswd = XXXXX
Dbserver = localhost
Dbname = XXXXX
Dbopt = -- opt
Backupdir =/dcbackup/
# ------------------- Whether to enable FTP rem
) from @db_list; - --Start Loop - while @dbcnt>0 in begin - --get the name of the last database from the temp table to Select @dbname=Name from @db_list whereId=@dbcnt; + Set @sql='Backup'+@backup_type+' '+@dbname+'To disk='+" '"+@path+@backup_type+'_'+@dbname+'.'+Convert(varchar(8),getdate(), the)+'.'+Datename(HH,GETDATE())+" '" - --Start a recurring backup the exec(@sql); * if @ @ERROR0 $ Insert into @b
The following articles mainly describe the correct application of the script for daily DB2 backup. I accidentally found a script for daily DB2 backup on a reputable website, for your reference, the following is a detailed description of the article.
Script, daily
mon_da
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.