After the project is developed and deployed to the Linux environment, if its own platform does not provide log automatic backup functionality, then we may need to write a script and use the Linux crontab to do the scheduled cleanup and backup logs.
The following are the more common log cleanup scripts and crontab confi
Linux backup policy (version 2)Backup policy backup ideas
I. potential threats to the System
? System hardware faults
? Software faults
? Power Supply Fault
? User misoperations
? Man-made destruction
? The content in the cache is not written to the disk in time.
? Natural disasters
Ii. Selection of
This article describes how to backup and restore the MySQL database under Linux.
Database backup is very important. If you do a regular backup, you can restore the data to the last normal state in the event of a system crash, minimizing the loss.
One, use the command to implement the
To define environment variables, even if the ORACLE user crontab-e is used. Sourcehomeoracle. bash_profile or directly change homeoracle. bash_pr
To define environment variables, even if the ORACLE user crontab-e is used. Source/home/oracle/. bash_profile or directly Mount/home/oracle/. bash_pr
I have previously written a script (see). You can manually execute it. Using crontab, you cannot run it successfully. This afternoon, I spent two hours experimenting with the following:Note: After th
:[[email protected] ~]# tar-jpcvf mysql. ' Date +%y-%m-%d '. Tar.bz2/var/lib/mysqlRestore: Catch the latest Linux distribution, install, the system data (such as account/password and home directory, etc.) with the service data (such as WWW/EMAIL/CRONTAB/FTP, etc.) one of the fill back.3.5, bird Brother's "bird Station" backup strategy:1. Host hardware: Use a separate filesystem to store the
Linux automatic Backup and upload of remote FTP for MySQL scheduled Tasks1 , create the directory where the backup files are saved:/home/mysql_dataCd/homemkdir Mysql_data2. Create backup script file:/home/mysql_data/mysql_databak.shCd/homeCD Mysql_dataTouch mysql_databak.shVim mysql_databak.sh#!/bin/shDump=/usr/bin/my
Mysql automatic backup script bitsCN.com in linux
Put the script in/home/user/mysql_backup.sh
Crontab
# Crontab-l
# M h dom mon dow command
28 16 ***/home/user/mysql_backup.sh
The script is as follows:
#! /Bin/sh
# Mysql_backup.sh: backup mysql databases and keep newest 5 days backup.
#
# Last updated: 20 march2006
#--
We often need to back up some data in our online maintenance work. Although the work is not complicated, it takes a lot of time. I will share a Linux backup script here to implement automatic backup with ease and
During our online maintenance work, we often need to back up some data. although it is not complicated, it takes a lot of time. I will share a
I wrote a MySQL backup script in Linux. This is the first version. Only one database can be backed up. Every night at, I run the script with a timer and it will be automatically backed up. In the future, multiple databases can be backed up. If the backup fails, text messages will be sent to the mobile phone and expired backups will be cleared automatically.
MySQL
A common question for Linux system administrators is: how do I back up my system? For Windows systems, it is easy to back up data (you only need to click the mouse in menu mode ). Linux backup is much more troublesome. If you are not familiar with Linux system files and devices, the situation will become worse. This ar
ORACLE_SID = orclExport ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1Export PATH = $ ORACLE_HOME/bin: $ PATHRman target/Run {Allocate channel c1 type disk;Backup incremental level 1 tag 'db1' format'/Home/oracle/RmanBackup/db1 _ % d _ % T _ % s' database include current controlfile;SQL 'alter system archive log current ';Backup filesperset 5 format'/home/oracle/RmanBackup/cf1 _ % d _ % T _ % s' archivel
Test System: linux-debian Backup System 1. Insert dd with systemrescuecd-x86-401iso system backup
Test System: linux-debian
Backup System 1, insert dd systemrescuecd-x86-4.0.1.iso system backup recovery U disk; 2, BOOT press DEL t
Guide: Today's Baidu Cloud disk free capacity is 2 T, even if the computer all the stuff on the put up, there are plenty of space left. For the webmaster, is fully able to make full use of these hard disk space, now we use Baidu Cloud disk to back up the data on the Linux server. have been thinking, if the Baidu Cloud disk support FTP is good, you can implement the Linux scheduled
full backup data
-F: Take the dump file that you want to work with later
-D: With-C, you can find the following mount point and dump in a different file
3, have the CD-ROM writing tool
Step one: Create a new mirrored file mkisofs [-o mirrored file] [-RV] [-m file] to back up files ... [-V vol.]-graft-point isodir=systemdir ...
-O: followed by the image file name you want to produce
-r: Generate supporting Unix/
this happened or it will not be so heartache, from the beginning again is not difficult. If it is a website that has been running for several years, a sudden accident can be said to be a heavy blow.Just become a webmaster in the first few months, I have no consideration of the data backup, until one day in the group to see a group of friends sad Experience-the website completely collapsed, the data are all not!! That is operating for more than 3 year
Pg_dump periodic backup OS in linux: CentOSDB: PostgreSQL93, OSuser: S 1. Compile the pg_dump backup script: 01getthedayofweek1-7startingmon = 102DOW = 'date + quot; % u quot; '0304de periodic backup of pg_dump in linux OS: CentOS DB: PostgreSQL9.3, OS user: s I. Compile t
/flash_recovery_area ';Then, you can start Rman and connect to the database as a SYS user, backing up the data file 4:Rman Target/Backup DataFile 4;Then, in the directory we just set up, you'll see the backup file.Settings, the control file and SPFile are backed up each time the Rman backup is backed up:Connect Target/Configure Controlfile Autobackup on#!/bin/bas
Backup and restoration of the Linux operating system will be performed on the Linux operating system in the past two days. after checking some information, we will record the backup and restoration commands: 1. backup: # switch to root [plain] sudosu # enter the system root
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.