This article will introduce you to the actual application code for DB2 database backup and recovery in Linux, and the DB2 database backup script for your reference. I hope it will help you:
./Home/db2admin/sqllib/db2profile
Db2 backup db datedb online to/dbbackup/date include logs
Cd/dbbackup/datetoday = 'date + "%
In Linux, back up partition tables:
Use the DD command
1. Back up the MBR Master Boot Record without backing up the master Partition Table:
# Dd If =/dev/SDA of = MBR. Backup BS = 446 COUNT = 1
2. View in hexadecimal format:# HD-v mbr. Backup00000000 EB 63 90 D0 BC 00 7C 8e C0 8e D8 be 00 7C BF 00 |. C ...... |00000010 06 B9 00 02 FC F3 A4 50 68 1C 06 cb fb B9 04 00 | ...... pH ...... |00000020 BD be 07 80
#!/usr/bin/python#Filename: backupscript.pyImport OSImport time# The files and directories to is backed up is specified in a list.Source = ['/data/']# The backup must is stored in a main backup directoryTarget_dir = '/mnt/backup/'# The current day was the name of the subdirectory in the main directoryToday = Target_dir + time.strftime ('%y_%m_%d ')# The current t
The Linux server uses the system crontab to regularly execute Backup files and save the backup results by date to achieve the backup purpose.
1. Create the path to save the backup file/mysqldata
# Mkdir/mysqldata
2. Create the/usr/sbin/bakmysql file.
# Vi/usr/sbin/bakmys
In many cases, we have made various configurations of the system and want the configuration to be saved, installed in batches on other hosts, or used for future backup of the system. All want to be able to back up the system.Of course, there are many tools for backup on Linux, such as DD and tar. Clonezilla is also a very good
This example of the book needs to be supported in Ubuntu's lower version of the system, and now basically does not support, want to implement it is very simple to write a script to back up and then delete.Alias has just made a replacement.Alias rm= ' CP [email protected] ~/backup; RM [email protected] 'RM text.txtwas converted into aCP [email protected] ~/backup; RM [email protected] text.txt thatCP ~/
The first type of wget direct download: Run the CRONTAB-E command on the remote server to add a timed task 7 * * * * cd/home/backup/wget http://Source server ip/xxx_$ (date +%y%m%d). tar.gz (Automatically download to backup directory at 7:30 every day) Using the SCP command backup requires that you first set up the SSH key login Suppose that there are two
Before using Windows Server for file backups, Syncfolders is often used to implement incremental backups of files. Now the company's backup server replaced by the CentOS system, want to implement incremental backup thought of rsync. But previously in the study only used RSYNC-AV, unable to achieve incremental backup needs, but looked at the man. On the basis of t
]/]# ls/ba Ckup/2017-11-04.tar.gz test.tar.gz2.3Saturday Package Special nameBecause the server needs to keep the Saturday package, you need to give the file a special name in order to differentiate it when you package the Saturday file.[[Email protected]/]# CD/ tar-zcvf/backup/$ (date +%f) _week6.tar.gz Etc/hostsetc/hosts[[email protected]/]# ls/backup/2017-11-04.tar.gz 2017-11-04_week6.tar.gz test.tar.gz2
can find it through mysqldump-help.
Database: indicates the database to be backed up.
Tables: indicates the table to be backed up. If no table is specified, the entire database is backed up.
We used mysqldump to back up the mysql library that comes with mysql, and used
Ll command to view the backup file.
Let's take a look at the recovery after the backup, 9. As shown in figure 10, we create a new database
Understanding: LVM is short for logical disk volume Management (LogicalVolumeManager). It is a mechanism for managing disk partitions in Linux, LVM is a logical layer built on hard disks and partitions to improve the flexibility of disk partition management. LVM supports online resizing of partitions, snapshots, images, and striping, providing powerful functions. This article
Understanding: LVM is short for Logical Volume Manager. It is a mechanism fo
Tags: multi-master one from MySQL hot backup Linux live SyncIn the previous article http://5148737.blog.51cto.com/5138737/1570274 how to make a MySQL hot backup in Linux, belonging to a master one from the situation, but most of the situation is more than one host backup to
Real-time file backup using Linux commands-incron, rsync, and inotify
I,Rsync, incronIntroduction
For details about the rsync tool and its use with the cron tool for Scheduled backup, refer to the blog: http://blog.csdn.net/wangjun2008/article/details/4268539;
Inotify is a file change notification mechanism, which is introduced in
There is an automatic backup script program for rman. I have previously written an automatic backup case for exp backup specific solution (Oracle automatic backup case for Linux platform (using exp tool)
There is an automatic backup
Article Title: BackInTime: a simple and easy-to-use Linux backup tool. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Do you want to back up your
For some reason, we may need to reinstall the system. Generally, the downloaded ISO image file is installed, so there will be a lot of updates.
For a system that has just been installed, we will always be prompted to download updates. Although hundreds of M of updates are not very large, if the network speed is not good (for example, I used six or seven hours to download updates), the updates will be downloaded online each time, it takes a lot of time.
Back up data directly.
Generally, sys
This paper mainly solves the problem of how to use the lftp command to backup files to FTP server in Linux Debian system.
Conditions:
1, Linux DEBIAN6 system, network connectivity is good.
2,/etc/apt/sources.list inside the URL is correct.
3, the FTP server's account and password is correct.
Thought:
1. The operation of the
Monitoring # tail-f/var/log/message to turn off the main service # killall-9 keepalived, you can see the backup service log output: mar 13 23:00:27 linux-backup Keepalived_vrrp: VRRP_Instance (VI_1) Transition to MASTER STATEMar 13 23:00:28 linux-backup Keepalived_vrrp: VRR
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.