Differential backup: Back up data based on full backup. Because the tar command cannot implement differential backup, this article explains how to use the dump and restore commands. Of course, the dump and restore commands can also implement full backup and Incremental backup.
1. Create Backup directory partition mount
Basic use of dump backup and restore restore Dump is a powerful backup tool that allows you to create levels in addition to backing up the entire file system! How to understand, can be understood as MySQL differential backup, if your home/home is a separate file system, the
For the system, we can have a lot of ways to back up (restore) the system or file, the reason is to do the backup, is to be in the system or file damage, the timely recovery, reduce the loss to a minimum. Of course, the importance of backup is important for enterprise servers. Let's discuss in detail today how to use dump and restore for backup and restoration in
In the terminal, enter:
The code is as follows
Copy Code
Tar-cvpzf/media/data/linux_bak.tgz–exclude=/proc–exclude=/lost+found–exclude=/media–exclude=/mnt–exclude=/sys/
Note: The last/previous one has a space
Media/data/linux_bak.tgz This is the path to my backup file save. Data is another partition on my hard drive, and you can back up the backup files to a network hard disk or on a tape drive.
To restore the s
"Linux instructions from beginner to proficient" in the 3rd chapter of document management, this chapter introduces many common commands, such as CP, LN, chmod, Chown, diff, Tar, MV, etc., because these are related to file management, used in daily use, so this chapter is the key chapter of this book. This section introduces you to dump (file system backup).AD:3.19 Dump (file system backup)(1) Frequency lev
Backup: DumpWhen using dump to back up a directory, the following restrictions apply:o All backup data must be under this directory (in this case:/home/someone/);O and can only use level 0, i.e. only full backup is supported;o Support-U selection, that is, the inability to establish/etc/dumpdates this individual level backup time record file;[email protected] ~]# dump [-SUVJ] [-level] [-~]#
For the system, we can have a lot of ways to back up (restore) the system or file, the reason is to do the backup, is to be in the system or file damage, the timely recovery, reduce the loss to a minimum. Of course, the importance of backup is important for enterprise servers. Let's discuss in detail today how to use dump and restore for backup and restoration in
One, the dump command:This command can be backed up for the entire file system, or only for directories. You can also specify a different backup level ( -0~-9 a total of 10 levels).Dump-w: Lists whether the partitions with the dump settings in/etc/fstab have been backed up.Command format: Dump [-SUVJ] [-level] [-f back
Redis backup and restore, with the help of a third party tool, Redis-dump
1. Installation Redis-dump
Copy Code code as follows:
[Root@localhost tank]# yum install ruby rubygems ruby-devel/installation RubyGems and related packages
[Root@localhost tank]# gem sources-a http://ruby.taobao.org///source, add Taobao, outside the source can not acces
Tags: Lin incremental backup storage log SRE file in digital package manualInstall package Yum Install-y dumpDump [option] The file name of the original file or directory after backup. Backup specified mount point (only ext2, ext3 file system supported)-level 0-9 10 backup levels, level is digital, 0 is full backup, 1 is the first incremental backup, and so on-F file name after backupAfter you have successfully backed up, log the backup time to/etc/dumpdates-V shows more output information durin
FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;-- Dump completed on 2015-05-07 16:54:19
The above command has simply backed up the database named database databasename to
this way when the profile is turned on. We can see that the SQL file week will have a line--change master to master_log_file= ' current binary log filename ' master_log_pos= event log location ' The next time you back up the data from the binary log, you can back it up from this location in the binary file.--lock-tablesThat means locking all the tables automatically, and if we just back up a single library and lock all the tables, that's unreasonable, we can use this option. Log in to
-uroot-proot--no-data--databases db1 >/tmp/db1.sql7. Export Import data across serversMysqldump--host=h1-uroot-proot--databases db1 |mysql--host=h2-uroot-proot DB2Import all the data from the DB1 database in the H1 server into the DB2 database in H2, and the DB2 database must be present or the error will beAdd the-c parameter to enable compression delivery.8. Append the Binlog location and file name of the main library to the exported data file,--
TcpDump can completely intercept the "Header" of the packets transmitted in the network for analysis. It supports the output results of network... 3. tcpdump. Next we will introduce the configuration and debugging of Linux mysql dump.
1. Linux mysql dump configuration and debugging core file generation switch and size
Mysql's dump database command recently used the mysql dump database table to record the usage of this command: www.2cto.com mysqldump backup: mysqldump-u username-p password-h host database a-w "SQL condition" -- lock-all-tables> path case: mysqldump-uroot-p1234-hlocalhost db1 a-w "id in (select id from B)" -- lock-all-tables> c: \ aa.txt mysqldump
For Linux mysql dump, pay attention to the following issues to ensure Coredump is generated when the program crashes:
1. For Linux mysql dump, ensure that the directory where Coredump is stored exists and the process has write permission on the directory. The directory that stores Coredump is the current directory of t
Dump can execute functions similar to tar. However, dump tends to consider file systems rather than individual files. This article provides answers to some questions about the Linux mysql dump command.
1. Ensure that the directory for storing Linux mysql
the table:Use library name;CREATE TABLE table name (field settings list);6. Deleting the library and deleting the table:drop database name;drop table name;7. Empty the records in the table:Delete from table name;8. Display the records in the table:SELECT * from table name;MySQL Import Export command1. Export the entire databaseMysqldump-u user name-p database name > exported file nameMysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql2. Export a tableMysqld
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.