VdumpCommon Methods:
1) For files that need to be backed up in read-only mode, it is recommended that you enter a single user:
# Init s or
>>> Boot-fl s
2). Back up MOUNT Points of the Operating System
3). # mount-
# Vdump-0uvf/dev/ntape/tape0_d1/
# Vdump-0uvf/dev/ntape/tape0_d1/usr
# Vdump-0 uf/dev/ntape/tape0_d1/var (if the var area is used as a separate file subset, it also needs to be backed up separately)
-F: Device File Name (such as DDS tape driver)
-U: update/etc/vdumpdates for Increment
Linux system backup and restoration command skills-general Linux technology-Linux technology and application information, the following is a detailed description. Take the most popular Linux version Ubuntu as an Example
Full backup
Open the terminal and enter the following command: 1. Become the root user: sudo su 2.
Rsync is a very powerful tool, and its commands have many feature options, and we'll analyze all of its options below. The command format for Rsync can be the following six: rsync [OPTION] ... SRC DEST rsync [OPTION] ... SRC [User@]host:dest rsync [OPTION] ... [user@] HOST:SRC DEST rsync [OPTION] ... [user@] HOST::SRC DEST rsync [OPTION] ... SRC [user@]host::D est rsync [OPTION] ... rsync://[user@]host[:P ort]/src [DEST]
corresponds to the above six
Using 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 modified date or backup type. You can even construct scripts that can reference both standards.
Using these parameters, we can construct the following example to solve the problem of deleting backup script files
Restore database:
Delete the original database, create a database, and import the backup database.
Mysqladmin-uroot-p123456 drop database_name
Mysqladmin-uroot-p123456 create database_name
Mysql-uroot-p123456 database_name
Note: before importing a backup database, if database_name does not exist, you need to create it. It must be the same as the database name in backup20070713. SQL to import the database.
To learn about Linux, such problems emerge one after another. For example, how can I Back Up Files in Linux? In fact, Linux backup is too convenient. In fact, tar is a good Incremental Backup Software. Today we will talk about the tar command of Linux backup application.
Incremental
In the previous chapter we talked about the Windows Server 2016-graphical backup domain controller approach, in this chapter we talk about how to back up a domain controller from the command line Wbadmin. In Windows Server active Directory, System State data typically includes the COM + Class registration database, the registry, boot files, system files, the SYSVOL directory, and so on.Before running Wbadmi
The DD command is a very simple backup tool for Linux distributions. The "DD" tool simply copies the standard input to the standard output and reads in 512-byte blocks.The DD command is a very simple backup tool for Linux distributions. The "DD" tool simply copies the standard input to the standard output and reads in
Code
Gunzip
Transferring a database to a new serverMysqldump–u{username}–p{password} {DatabaseName} | mysql–host=*.*.*.*–c {DatabaseName}II. Other:1, if the port is the default 3306, you can omit the-p {port number}.2, the contents of the command line format {} are variablesHost name: {hostname}Port: {port} (general default 3306, can default)User name: {user} {username} (for example, root)Password: {password}Database name: {dat
Dump command Backup
1. Back up a database:
Mysqldump-uroot (Root is User name)-P-Database (library name) table (table name) >d:\backup.sql (where to back up, file name)
2. Back up multiple databases: (plus the--databases option, followed by multiple databases)
Mysqldump-uroot-p--databases dbname1 dbname2 >d:\backup.sql
3. Back up all databases:
The syntax of the mysqldump
1) Common fbackup Method 1:
[1] accessing a single user:
# Init-S or shutdown 0
[2] Full System Backup
# Fbackup-F/dev/RMT/0 m-0iv/-I/tmp/sysbk. Index
-F: Device File Name (such as DDS tape driver)
-I: directory to be included-E: excluded directory-I: Backup Content Retrieval directory
-V: Detailed list of backup content-0: Zero-level
Today, let's take a look at how convenient it is to use the batch processing command to back up a table during database backup in oracle 10 Gb.
Today, let's take a look at how convenient it is to use the batch processing command to back up a table during database backup in oracle 10 Gb.
Note:
1. I use an oracle 10 Gb d
/image.gzBackup/DEV/HDX full data and compress with gzip tool to save to specified pathRecovery:DD If=/path/to/image OF=/DEV/HDXRestore the backup file to the specified diskgzip-dc/path/to/image.gz | DD OF=/DEV/HDXRestores a compressed backup file to a specified disk2.1.2. Using netcat remote BackupDD If=/dev/hda bs=16065b | Netcat Perform this command on the sou
Now most of the virtual host has automatic backup function, but sometimes can not rely on the host is not, if the host is black, even backup files can not be restored, then cry miserably, so that people are inferior to rely on their own. Today 111cn.net teaches everybody how to give back to own website, here uses Hostgator this foreign space to say.
Backups are generally divided into two parts, one for fil
We use the automatic batch processing program to back up the data. It can generate a backup file on a given day and save the data on a daily basis to a corresponding directory, it should be implemented in combination with windows scheduled tasks.
Method 1
CodeBackup
The Code is as follows:
Copy code
@ Echo off setlocal ENABLEEXTENSIONS: ---------- Configuration item ----------: Path where the
Method One
Specific codeBackup
The code is as follows
Copy Code
@echo Off setlocal enableextensions ::----------Configuration Items---------- :: Backup placement path, plusSet Backup_path=d:backup :: Database name to back up, multiple spaces separatedSet Databases=database1 database2 database3 :: MySQL User NameSet Username=root :: MySQL PasswordSet password=123456 :: MySQL Bin directory, plus:: If you can use Mysqldump
To use MongoDB, the natural use of data import and export, I learned a bit.In MONGO study (ii) there are some tools in the Bin directory, this is the use of these tools for data import and export and backup recovery.Note: The following commands are entered on the cmd command line, and are saved in the current operation directory if the export and backup are not i
The mysqldump command creates a logical backup, and the result set has two formats: one is to convert data into standard SQL statements (a bunch of CREATE, DROP, INSERT, and other statements ), the other is
The mysqldump command creates a logical backup, and the result set has two formats: one is to convert data into s
The FLUSH command is often used for MySQL database backup. The following is a summary of the syntax. If the server uses the -- log-error option, FLUSHLOGS will cause the error day.
The FLUSH command is often used for MySQL database backup. The following is a summary of the syntax. If the server uses the -- log-error 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.