Write a batch file first, give an example.
Copy Code code as follows:
Set rq=%date:~0,10%
Exp System/system password @ Local Service name file=d:\backup\bak%rq% Full=yes log=d:\backup\bak%rq% buffer=65536
C:\progra~1\winrar\rar.exe A-DF
Description: MySQL directory is/data/mysqldata/3306The fully-prepared catalogue is/data/mysqldata/backup/fullThe incrementally prepared directory is/data/mysqldata/backup/incThe fully-prepared file used in this article is/data/mysqldata/backup/full/2
http://skzr-org.javaeye.com/blog/811491
Goal: Timed export: Use Scheduled tasks to automatically compress: using the command line RAR automatic monthly storage: using cmd
Code:
CMD code @echo must go to the specified path, otherwise it will
Open MySQL Remote login account need to note the following 3 points:
1, make sure that the firewall on the server does not block 3306 ports.MySQL default port is 3306, you need to determine that the firewall does not block 3306 ports, or remote can
SQL Server 2005 restores the database file in the new library. The database backup in the backup set is different from the existing ' JM2012 ' database. "There are several possible errors:
First, overwrite the original database is not selected when
First of all, this article is not a hands-on teaching you to use Percona Xtrabackup, you can refer to my entry level article http://blog.csdn.net/zhu19774279/article/details/41693267, you can also search or read the official manual.
I've been trying
Backup | recovery | Data not backed up, only archived logs, how do I recover data files?
System environment: 1, operating system: Windows Server, machine memory 128M
2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition
3, Installation path: C:
Many Exchange administrators have a problem with headaches: Log files commandeer disk space.
Disk space is limited; however, as long as Exchange is running, the log file is infinite, although each is only 5 m size, but the production of log files
Because FreeBSD is a multi-user system, it requires the administrator to do day-to-day maintenance, especially as a network server system, once because of lack of maintenance caused by downtime failure, will cause great losses. Even for a single
abnormally and fills up disk space, you can view log file usage in the following two ways.1 #查看日志使用情况, file size and actual usage size
2 DBCC SQLPERF (LOGSPACE)
3
4 #查看文件相关信息
5 Select name,physical_name,size*8.0/ 1024x768 size_mb,* from Sys.database_files Regular log backups, the interval of two backups is the time span to run the lost data, and do not backup too often, which can have a certain impact on
shrinking the log file by the way. DBCC LOGINFO (dbname) returns the number of rows, that is, the number of VLF files, when status is 0 o'clock, that is, the file is not used, but also write to the log,2 expression has been used, and can not be reused, this time, through the form of backup Log, Back up and truncate the log file, you can reclaim space from the last 0 to the most recent 2 rows. Shrinking the log file or reducing the VLF file as follows, you need to back up the log files before yo
database will also change during this time period. So a full database backup also backs up some of the transaction logs so that the database can be restored to a transactionally consistent state.Full database backups are easy to use. It contains all the data in the database. For small data that can be backed up quickly, the best approach is to use a full database backup. However, as the database grows, full backu
, because database backup is an online operation. A large full database backup can take up to one hours or longer. The database will also change during this time period. So a full database backup also backs up some of the transaction logs so that the database can be restored to a transactionally consistent state.Full database backups are easy to use. It contains all the data in the database. For small data that can be backed up quickly, the best appro
First, the common backup:
The following approach is a simpler and more common way to SQLite database backups, as follows:1. Use the SQLite API or shell tool to add a shared lock to the source database file.2. Use the shell tool (CP or copy) to copy the database files to the backup directory.3. Unbind the shared lock on the database file.The above 3 steps can be applied to most scenarios, and the speed is also relatively fast, but there are some rigid
There are three types of SQL backups:Full backup/differential backup/log backup
The preceding three backups can be performed independently.On Restoration, full backup files can be restored independently.To restore a differential backup, you must restore the last full backup before the differential backup.To restore a log backup, you must first restore the last full backup before the differential backup, and then restore the log backup after the full b
Customizable database backup and recovery program Tashanzhishi [Original]
Keyword Database backup recovery
Source
When we do the database system program, often need to do a database backup and recovery procedures for customers, especially for some unprofessional database users, this program is essential, and the operation must be simple enough. Because in many systems, the backup recovery function of the database is similar, so we'd better do a common database backup recovery program, so that
Db2 instances and databases are installed on shared disks. To back up the DB2 database by using the crontab scheduled task, because it is in the HA environment, consider the feet on the two machines.
Db2 instances and databases are installed on shared disks. To back up the DB2 database by using the crontab scheduled task, because it is in the HA environment, consider the feet on the two machines.
Db2 instances and databases are installed on shared disks. To use a crontab scheduled task to
1. to instantiate dbbak, you need to tell it two things: Where is the data server ($ connectid) and the directory to which it is backed up ($ backupdir ):
Require_once ('dbbak. php ');Require_once ('tablebak. php ');$ Connectid = mysql_connect ('localhost', 'root', '123 ');$ Backupdir = 'data ';$ Dbbak = new dbbak ($ connectid, $ backupdir );
2. Then you can start backing up the database. You can not only specify the database to be backed up, but also set to back up only those tables in de
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.