Shell Script Rollup 1 Name the backup file by month date#!/bin/bash# Create a back package for MySQL of the ball and web of ballcloud## backup mysql-ball and web for BALLCLOUDCD/www/web/backup_ballcloud/year= ' Date +%y ' month= ' date +%m ' day= ' date +%d ' now= $year-$month-$day #create a directory for Every backup
This is a copy of all the tables in the specified database to a SQL file and can be downloaded. The source code from the DEDECMS program, the function is quite many, also very practical, but the quality of codes still need to improve
/****** BACKUP DATABASE Structure ******/
/*
Function name: Table2sql ()
function function: Transform the structure of a table into SQL
Function paramete
-transaction--databas Es hxl>e:\\mysqlbak\\hxl_bak_20140915.sql ";SYSTEM.OUT.PRINTLN (command);Runtime r = Runtime.getruntime ();Process p = r.exec (command);}Rs.close ();//Close DatabaseConn.close ();} catch (Exception ex) {System.out.println ("Error:" + ex.tostring ());}}}As the program executed successfully, but the problem is that the generated backup file is 0 bytes, here mysqldump is itself called the
SCP implementation of Linux to Windows file data backupWe introduced the use of Curl+windows FTP for Linux to Windows data Backup, today we introduce the use of SCP service to the Linux file to Windows Backup; we all know that SCP uses the SSL protocol for data transmission, So if we use the SCP service for data transf
Sometimes we do notSQL ServerOr you do not have permission to connectSQL Server,However, we want to view the contents of the backup file. In this case, we can useSQLBak ReaderGadgets. When you cannot restore the database, you can use this tool to view the database version of the backup.BakFile Corruption can also be usedSQL Bak ReaderOpen.
UseSQL bakreaderOpenMasterBackup
The Oracle tutorial being looked at is the sh file of the Oracle database logical backup.
SH file for full backup: exp_comp.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
SH
Rsync is a data image backup tool in Linux. It can be seen from the software name-remotesync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD.
I. rsync
CommandIntroduction
Rsync is a command for Synchronizing files to a Linux system. It can synchronize two computers to files and directories, and find different files in different blocks to reduce data transmission. You can also synchronize data from a computer to different dire
Looking at the simple python tutorial, I learned how to back up files. Record the solution here.
Info-zip: http://www.info-zip.org/Zip.html#Downloads
The Code is as follows:
Import osimport time #1. source = ['d: \ sll ', 'd: \ download'] #2. target_dir = 'd: \ pyback \ '#3 target = target_dir + time.strftime('policy?m=d=h?m=s'{}'.zip 'print targetzip_command = "zip-qr % s" % (target ,''. join (source) print zip_commandif OS. system (zip_command) = 0: print 'successfull back to ', targetelse:
Solution for restoring a large backup mysql File: bitsCN.com
During the maintenance of the company's CRM today, a large mysql database was restored and the recovery failed.
Use the following method (navicat is used for mysql management). set the values of the following parameters and the following statements can be executed on the mysql console.
Show variables like '% timeout % ';
Show variables like '%
Concurrent execution of mongolerman's backup of a single file
If a file is a file of several gigabytes or tens of thousands of megabytes, You Need To parallelize the backup of the file. Generally, one channel can only read one
MySQL uses commands to import and export instances for. SQL file backup data operations
In order to pursue efficiency, various MySQL operations are basically completed through a graphical interface. A few mouse clicks, ALL over. However, in a specific environment, for example, when MySQL graphical management tools are not installed and cannot be downloaded, what should we do?
The author has encountered this
/binlog sr0 11:0 1 8.1G 0 rom Second, implement data and binary log separation1, modify the permissions of two directories chown -R mysql.mysql /mysql/2. Modify the MySQL configuration file vim /etc/my.cnf 在[mysqld]这个语句块下修改这两项 [mysqld] datadir=/mysql/data log_bin=/mysql/binlog/mysql-binlog3, restart MARIADB service systemctl restart mariadb systemctl enable mariadb4 to see if the port is open [[email
0) # If the parameter is null, an error is prompted and echo "message: param is wrong" echo "eg :. /bak. sh path suffix "exit $ E_BADARGSesac string =" "cd $1 # enter the input directory # When backing up files in the subdirectory, the parameter also needs to be connected to if [$ #-gt "1"] then string = $ string "" $2 fi for filename in * # read the files in the current directory do if [-d" $ filename "] # Check whether the directory is then/bin/sh $0 $ (pwd) /$ filename $ string # Is the dire
file, this time to remove the U disk, will destroy your backup data, patiently waiting for a while, will be back to completion.
The second step, when we open the U disk, you will see the following folder. Configuration inside the XML file, is the backup data layout management, this part we do not need to understand,
. NET provides many convenient methods, including finding files in processing files, copying files, and so on, today is a simple program to implement incremental backup files.
The first thing you need is to select the backup source file path SourcePath and the backup destination f
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.