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
The log files that the following scripts mainly back up are Tomcat's catalina.out, Localhost_access_log.yyyy-mm-dd.log logs, and project log files, where the log file format for the project is " Projectname-yyyy-mm-dd.log ", the following is a backup script, the specific operations have corresponding comments for your reference, depending on the format of the log file
Test environment: Windows Azure Shanghai Room, virtual machine configured for large (quad core, 7 GB memory), the disk situation is shown in the figure below.
The database backup compression file is greater than 12.0 GB (12,914,327,552 bytes), placed in temporary Storage (D:).
The database restore operation commands are as follows:
RESTORE DATABASE [Cnblogstext] from DISK = N ' D:\cnblogstext.bak '
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
Atitit. Improved Backup File Replication speed (4) --- data mining to obtain the list of recycle bin files
1. Principle of putting data into the recycle bin and 1
2. info2 file structure 1
3. Obtain the file list. Two Methods: regular expression or parsing 1.
4. Path regular expression [A-Za-Z] \: [\ a-zA-Z0-9 \ xb0-\
Inotify + rsync implements real-time file backup 1. inotify inotify is a powerful fine-grained and asynchronous file system event monitoring mechanism. The Linux kernel has been added to Inotify since 2.6.13, inotify can be used to monitor various events in the file system, such as adding, deleting, modifying, and movi
may need to be input Y/N. Now xcacls can solve this problem. It has a good parameter, that is,/Y indicates that confirmation is prompted when the user access is replaced.For example, type XCACLS * at the command prompt *. */G administrator: RW/Y, and then press Enter to replace the ACL of all files and folders in the current folder, without scanning the subfolders and confirming them.However, if we have many users with many directories and their permissions are different, setting them one by on
First, upload the backup files to the server one by one, pay attention to the evaluation of the volume label, and then perform the import operation.
// If you want to publish this article, please indicate the exit, no outgoing copyright notice, I do not like to see this kind of website. My work website does not indicate the person who is serving seven {see7di # gmail.com}
/*---------------------------------*/Function _ doimport (){$ F1 = _ r ($
@echo offREM ###########################################################REM # Windows Server 2003 Automatic backup batch script for Oracle databaseREM ###########################################################REM takes the current system time and may be different depending on the operating systemSet curdate=%date:~0,4%%date:~5,2%%date:~8,2%Set curtime=%time:~0,2%REM hours if less than 10, then fill 0 in frontIf "%curtime%" = = "0" Set curtime=00If "%
Today only found that the original position variable can also play so cool!!
This is a file directory backup using the location variable:
#!/bin/bash
Date= ' Date +%f '//date output from year to month
Tar Czf $ $DATE. tar.gz $ >/dev/null 2>>/opt/$1.bak.log//pack variable package, append error to log, tar package will keep original directory, better
If [$?-eq 0] The return value is 0 for packing OK, not
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,
Atitit. Improve backup file copy speed (4)---Data mining get a list of Recycle Bin files
1. How to put the Recycle Bin and 1
2. info2 File Structure 1
3. Get a list of files 2 methods: Regular expression or parsing 1
4. Path regular expression [a-za-z]\:[\\a-za-z0-9\xb0-\xf7\xa1-\xfe_.~]+ 2
5. Reference 2
1. How to put the Recycle Bin and
The Info2
Core steps:
Right-click the database Select Restore database directly in SQL Server 2005.
Detailed content:
To restore a database in SQL Server 2005 with a database backup of SQL Server 2000
You now have a database backup file in SQL Server 2000 (if the backup file
According to company requirements, delete the server 30 days before the file, the following is the script:#vi del-30.sh#!/bin/bashlocation= "/mpgdata/"Find $location-type f-mtime +30-exec rm-f {} \;#chmod +x del-30.shDescription:/mpgdata/is the path to the find backup file.-type f is the specified file type as a normal
. 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.