Discover backup exec cloud backup, include the articles, news, trends, analysis and practical advice about backup exec cloud backup on alibabacloud.com
data, specify the directory where the incremental backup file is stored--prepare Preparing to recover dataBackup data:First full backup [[email protected] packages]# xtrabackup_56--backup--datadir=/ar/lib/mysql--target-dir=/hahaSecond incremental backup [[email protected] packages]# xtrabackup_56--
backup database file
Find $ OUT_DIR-name "mysqldata_bak *"-type f-mtime + $ DAYS-exec rm {}\; # Delete the backup file seven DAYS ago (Note :{}\; there is a space in the middle)
######################################## ######################################## #######################
Ctrl + o # Save Configuration
Ctrl + x # exit
3. Modify file attributes to make
An example of network backup in SQLServer
An example of network backup in SQL Server
The Code is as follows: use master
Declare @ dir varchar (256), @ dir_db varchar (256 ),
@ Verb varchar (256), @ cmd varchar (256 ),
@ Backup_name varchar (256), @ dynamic_name varchar (10 ),
@ Disk_name varchar (256)
-- Establish a network connection
Exec xp_cmdshell 'net use
Case one: Shell+cron realize MySQL automatic backup and automatically delete n days before backup
Copy Code code as follows:
#!/bin/sh
Dump=/usr/local/mysql/bin/mysqldump
out_dir=/home/ldl/xxx/backup/
Linux_user=ldl
Db_name=ldlDb_user=ldlDb_pass=xxx#How much of the days of backup mostDays=1
find the cause? I am not serious about it. However, this search method can be quite helpful.
First,GoogleHowever, it is found that all the information about deleting the backup file isSQL:
--Delete expired backup files
Declare @ STR varchar ( 100 ), @ Dir varchar ( 100 ), @ Filename varchar ( 30 )Set @ dir = ' Del D: \ dbtext \ jgj \ dbabak \' Set @ filename = Left (replace (conver
products;
4. Comprehensive solutions: the combination of backup and recovery solutions is more in line with the investment philosophy of small and medium-sized enterprises to address more needs.
Mulang technology's multi-backup is such a product: by storing, backing up, migrating, and recovering enterprise data on the cloud, enterprises can easily enjoy the conv
these parameters, we can construct the following example to solve the problem of deleting backup script files. You can create a script based on the change time, date, or backup type. You can even construct scripts that can refer to two standards at the same time.
We will take a closer look at these possible scripts. Remember, you will execute this process from within the T-SQL code, so you need to summariz
password
DAYS = 7 # DAYS = 7 indicates that the backup created seven DAYS ago is deleted, that is, only the backup of the last seven DAYS is retained.
Cd $ OUT_DIR # enter the backup storage directory
DATE = 'date + % Y _ % m _ % d' # obtain the current system time
OUT_ SQL = "$ DATE. SQL" # Name of the backup databas
0 ** 6 su-oracle backup. sh // full backup database at every week## Su-oracle$ Cat/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/backup. shRman target/recover file =/home/oracle/backup. rman log =/home/oracle/backup _ 'date + % Y % m % d % H % M % s'. log$ Cat/home/ora
"mysqldata_bak *"-type f-mtime + $ DAYS-exec rm {}\; # Delete the backup file seven DAYS ago (Note :{}\; there is a space in the middle)
######################################## ######################################## #######################
Ctrl + o # Save Configuration
Ctrl + x # exit
3. Modify file attributes to make them executable.
Chmod + x/home/mysql_data/mysql_databak.sh
4. Modify/etc/crontab
Nano
-tables>${back_dir}/${back_file}Mysql-u${user}-p${pass}-e ' Flush ' logs# Keep backups for the last week onlyCd $back _dirFind-mtime +7-exec RM-RF {}\;2) TestChmod a+x/mysql_back.sql//Give script Execute permissionChattr +i/mysql_back.sql// in order to secure this script file lock, prohibit anyone to make changes/mysql_back.sql// Execute script3) Configuring Scheduled tasks into a production environmentCrontab-l0 2 * * */mysql_back.sql// 2 hours a
/home/user1/back/;bash dobackwebsite.sh
Represents the ability to perform an automatic backup of a dobackwebsite.sh script every 22:22.
4. Install Dropbox
Dropbox is a cloud storage service that can store files online and provide version-version management. Please refer to http://wiki.dropbox.com for details.Installation Steps Reference Http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstal
As we all know, the data is related to the development of enterprises. Then, since the enterprise data related to Enterprise secrets, then the data must be strict protection. So certainly can not be directly uploaded to the network disk, or is not a safe approach, the first should be the data to be backed up encryption, encryption and then two times encryption before uploading to ensure security.Then, small part think Baidu Cloud disk and other synchr
Regular backup of web site data is indispensable. We often encounter the website backup function on the web site. Next we will introduce the asp tutorial.. net.
Using System. Data. SqlClient;
Using System. IO;
String SqlStr1 = "Server = (local); DataBase = master; Uid = sa; Pwd = ";
String SqlStr2 = "Exec sp_helpdb ";
String SqlStr1 = "Server = (local); dat
Oracle 11g has added the system information backup and recovery functions at the system level, user level, and table level! When we collect statistics on oracle system objects, we can useDbms_stats.export _ (database/schema/table) _ stats export statistics to the created tableDbms_stats.import _ (database/schema/table) _ stats import statistics to the SystemTo restore statistics!The backup and recovery of s
then save as "111cn.net _ Month, day. tar.gz compressed file.3. Create a site log backup script (optional)
Web site Access log is generally placed under the wwwlogs, the individual prefers to analyze the site log to understand the search engine crawling and search, so I want to separate back to the log of daily logs. Create the following script:Tar zpcf/home/backup/log_$ (date +%y%m%d). tar.gz/home/wwwlog
.
--host=127.0.0.1
This is the IP address of the server where the Database Service is located.
--port=3306
This is the port number of the server where the Database Service is located.
--events "yumi_website" > "E:\mysql\MySQL BackUp\backup_%Ymd%.sql"
The events parameter backs up a database to a specified file. "Yumi_website" is the database to be backed up, and the server directory and file name stored in the
Tags: database mysql backup Linux cloud storageOverview?? Backup is the basis of disaster recovery, which is the process of copying all or part of the data collection from the application host's hard disk or array to other storage media to prevent the system from operating errors or system failures that result in data loss. And for some websites, the system, the
DAYS ago is deleted, that is, only the backup of the last seven DAYS is retained.
Cd $ OUT_DIR # enter the backup storage directory
DATE = 'date + % Y _ % m _ % d' # obtain the current system time
OUT_ SQL = "$ DATE. SQL" # Name of the backup database file
TAR_ SQL = "mysqldata_bak_1_date.tar.gz" # Name of the final database
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.