SQL Server automatic backup, automatic compression, automatic deletion of old backup, SQL Server backup Compression
Preparation tools:SqlServer2008WinRar
1. Set a scheduled backup for
SQL Regular automatic backup, encryption and compression of backup files, and automatic downloadRelease date:Author: knife tip customer QQ: 51978456 MSN: peters99@hotmail.com========================================================== ======= */
AsProgramStaff or database maintenance personnel may be frequent
The thi
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),getda
use Find.-mtime +180-name "*.sql.gz" |grep-v "1063001.sql.gz"-exec rm-rf {} \; The direct RM was deleted after the retrieval, but since find uses G Rep error does not recognize {}, so the compromise adopted a scheme to save the retrieved file in a temporary file old_backupfile_$d2.csv inside, and then traverse the Old_backupfile_$d2.csv file to MV or RM operation, etc. The find grep exec error is as follows:
[[email protected] ~]# find. -mtime +180-name "*.sql.gz" |grep-v "10630
, open "Internet Service Manager" and Right-click the original server name. In the displayed menu, click "backup/restore configuration". A Window similar to the figure appears, however, unlike the previous one, the original backup (such as "IIS Backup 1") will appear in the list box and process the selected status. Click the [restore] button. The system will pop
.
Use here as:
Expect "*password:" #此处填写系统提示文字Send "Your password\r" #此处填写我们输入的交互命令Expect EOF
Let me introduce you to the detailed steps of Oracle automatic backup
Background: Oracle 10g Server, Oracle 10g client, Windows XP operating platformRequirements: The Oracle database server automatically backs up the database YTCN once a day.Solution: Automatically generate Oracle
Preparation tools:SqlServer2008WinRar1. Set up maintenance schedule scheduled backups for SQL ServerThis is a simple operation, and you can follow the wizard to add a maintenance plan.2. Automatic compression scriptsc:\progra~2\winrar\winrar.exe a D:\bak\database_buckup_%date:~0,4%_%date:~5,2%_%date:~8,2% D:\bak\database_*%Date:~0,4%_%date:~5,2%_%date:~8,2%_*.BakThe format of the backup file is: Database_ba
Instance method for mysql automatic incremental backup (local backup and remote backup) bitsCN.com
1. local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:Cd/data/home/mysqlbakRq = 'dat
1. Local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:Copy codeThe Code is as follows:Cd/data/home/mysqlbakRq = 'date + % Y % m % d'/Usr/local/mysql/bin/mysqldump sqldb -- flush-logs-uroot-p123456 -- opt> 777city _ $ rq. SQLSave and exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e00 00 ***/var/lib/mysql/autobakThe autobak script is automatically executed every m
1. Local backupCompile an automatic backup script:Vim/var/lib/mysql/autobakThe content is as follows:
Copy codeThe Code is as follows: cd/data/home/mysqlbak
Rq = 'date + % Y % m % d'
/Usr/local/mysql/bin/mysqldump sqldb -- flush-logs-uroot-p123456 -- opt> 777city _ $ rq. SQL
Save and exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e00 00 ***/var/lib/mysql/autobakThe autobak script is automatically executed ev
MYSQL database automatic local remote dual-backup MYSQL incremental backup to build a high-security E-commerce website (automatic local/remote dual-backup of website files and databases) architecture diagram
We will continue to introduce the e-commerce system architecture
1. Local BackupTo write an automatic backup script:Vim/var/lib/mysql/autobakThe contents are as follows:
Copy Code code as follows:
Cd/data/home/mysqlbak
rq= ' Date +%y%m%d '
/usr/local/mysql/bin/mysqldump sqldb--flush-logs-uroot-p123456--opt > 777city_$rq.sql
Save exit.
Chmod-777/var/lib/mysql/autobak
Crontab-e* * * */var/lib/mysql/autobakThe Autobak script is automatically exe
Construction of high-security e-commerce website (website file and database automatic local/offsite dual backup) architecture diagramContinue to introduce Linux server file backup, database backup, data security storage related e-commerce system architecture. There are a variety of solutions for security, where data
We usually create
BackupIn
SQL Server, We can achieve this through the following method:
Steps for automatic backup in SQL Server 2005 database:
1. Open SQL Server Management Studio
2. Start the SQL Server proxy
3. Click job> create job.
4. Enter the job name in "regular"
5. Create a step, select the T-SQL type, and enter the following statement in the following command (the red part should be changed acco
Construction of a high security E-commerce site (Web site files and database automatic local/remote dual backup) architecture diagram
Continue to introduce Linux server file backup, database backup, data security storage-related E-commerce system architecture. There are a variety of solutions for security, where dat
Oracle automatic backup script and Oracle backup script
If you don't talk much about it, paste the Code directly. The specific code is as follows:
#! /Bin/sh #*********************************** * ****************************** # File: oraclebak. sh # Creation Date: 17:57:32 # Last Modified: 17:57:34 # Script Function: oracle
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/re
: bakwww.sh file must have the permission to execute!LINUX Automatic backup script filesFirst I set up a folder under the/root/backup directory,#mkdir/root/backup/mysqlbackupLater at five o'clock every day, there will be a file saved here.Then create a new file#vim/root/mysqlautobakInput:Filename= ' Date +%y%m%d 'mysql
One, automatic backup MySQL script: The following script for MySQL automatic backup script, for reference only, can be modified according to the actual situation. #!/bin/sh #auto backup MySQL #wugk#Define Path definition variable bakdir=/data/
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.