Discover backup exec cloud backup, include the articles, news, trends, analysis and practical advice about backup exec cloud backup on alibabacloud.com
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)
?
######################################## ######################################## #######################
?
?
?
3. Modify file attributes to make them executable.
?
Chmod + x/var/mys
database. SQL .gzEcho "...... [Done]"Done# AutoPrune our backups. This will find all files# That are "MaxFileAge" days old and delete them.MaxFileAge = 4Find $ BASEBACKUP-name '*. gz'-type f-mtime + $ MaxFileAge-exec rm-f {}\;
To put it simply, this command will retrieve the database row by row from the db-list.txt file (a list text file with a database name recorded) and output the + compressed data file (datastamped) to the/
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 use master2 go3 -- create a backup device on the hard disk4 exec sp_addumpdevice 'disk', mybackupfile,5 'C: \ mybackupfile. Bak'6 -- delete the backup device7 exec sp_dropdevice mybackupfile89 -- back up database data to
following is a file generated every day, if it is the second case, you need to modify it):/********* proc: backupdatabase use: additional information: create by: Mark create Date: 2007/6/4 exam: exec backupdatabase **********/create proc backupdatabase as begin declare @ SQL nvarchar (4000) if convert (char (5), getdate (), 108) = '00: 00 'in in set @ SQL = 'backup database [test] to disk = n' + '''' + 'e:
However, after VPS is involved, it is not just about backing up MySQL, but also about backing up some independent site data.
If there is a reliable third-party Linux host or cloud storage like Amazon, it is much simpler, and Linux-Linux backup is very convenient.
However, I want to run a backup every day or every week in my Windows 7 environment.
The general ide
/* -- Description:
The following code demonstrates how to use the log restoration function to timely report data changes in the primary database to the standby database.
The data of the standby database can be used for query at any time, but cannot be updated (the standby database is read-only ).
--*/
-- First, create a database for demonstration (master database)
Create database Db_test
ON
(NAME = Db_test_DATA,
FILENAME = 'C: \ Db_test.mdf ')
LOG ON
(NAME = Db_test_LOG,
FILENAME = 'C: \ db_tes
taken from the oplog.rs when needed. But the premise is that the oplog time window (Forget the time window concept, please forward) must be able to cover the start time of dump.Understand this truth, theoretically, as long as our mongodump do frequently enough to ensure that the database can be restored to any point in time in the past. A paid backup of MMS (now called Cloud Manager) is also working with t
Ster model */backup DATABASE model to DISK = ' E:\SystemDatabaseBackups\Model.BAK ' with initgo/* BACKUP Master DATABASE */ Backup DATABASE Master to DISK = ' E:\SystemDatabaseBackups\Master.BAK ' with initgo/* backup Master MSDB */backup Databas E MSDB to DISK = ' E:\Syst
However, after VPS is involved, it is not just about backing up MySQL, but also about backing up some independent site data.If there is a reliable third-party Linux host or cloud storage like Amazon, it is much simpler, and Linux-Linux backup is very convenient.However, I want to run a backup every day or every week in my Windows 7 environment.The general idea is
the location number, you can run Mysqlbinlog to find a time range that performs an unexpected transaction, but you should point the results back to a text file for inspection. How to do this: Mysqlbinlog--start-date= "2005-04-20 9:55:00"--stop-date= "2005-04-20 10:05:00" \/var/log/mysql/bin.123456 ; /tmp/mysql_restore.sql This command creates a small text file in the/tmp directory and displays the SQL statement when the SQL statement executes the error. YouYou can open the file in a text editor
filegroups must be readable and writable.? 1 database transaction log files: for the database transaction log, we need to back up the database transaction log regularly.Solution implementationAfter the design project is complete, the next step is the collective implementation of the scheme, the specific implementation includes:? Create a Database? Create chronology? Filegroup settings? Hot and cold backup implementationCreate a databaseWhile creating
knowledge is involved here. For example, if you are not in the same domain as the server, the ing may cause problems. The prompt from the database is always strange, such as the wrong user name.
4. The database with init on the backup server overwrites ¦ noinit to add
Backup database name to disk = 'C:/backup file name. Bak' with init
5. Copy the
public key filechmod 644 Authorized_keysIn fact, data offsite backup is not difficult, see how you choose. Manual and automated operations are still different, the use of multi-backup database backup operation is very simple, registered account after the new backup task, select a database
uptimeRecovery:1. # Mysqlbinlog Last Binlog--stop-position=260>/tmp/1. SQL # Mysqlbinlog last Binlog--start-position= the>/tmp/2. SQL2. Mysql>Setsql_log_bin=0; MySQL> source/backup/ the- Geneva-13_all.sql//Restore the most recent full backupMysql> source/tmp/1. log//Restore last Binlog fileMysql> source/tmp/2. log//Restore last Binlog filePrecautions :1completely recover to a clean environment (such as a new database or delete an existing database)2.
)
Download attachment
Upload
After the connection, select the directory to be backed up and set the backup cycle.
33333. jpg (24.18 KB, Downloads: 14)
Download attachment
Upload
This is the process of backing up Dropmysite.The second section describes multiple backups.Multi-backup is a
Every time you see a breakdown of the data reported on the Internet, you will say, "Do your data backup." But we are not idler ah, life is always full of variables Ah! So it seems simple to make a backup, it's still a bit difficult to stick to it.Especially for enterprises, a good backup is a difficult problem. First you have to have a professional IT staff to op
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.