-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
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
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
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
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
File backup is the basic task of daily file management, the use of manual operation, not only waste time, but also affect the efficiency of file backup. Is there a file automatic backup
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
WinRAR is a lot of computer users have installed file compression program, however, winrar in addition to file compression and decompression function, there are many practical office functions, for example, you can use WinRAR regular backup files, but also can be automatically backed up to the specified folder every day and the name is not duplicated, So, how doe
The software for network file synchronization has already introduced two free tools, Dropbox and syncplicity, in different dimensions. Today, I will continue to introduce sugarsync, another excellent synchronization software. In addition to not supporting Linux, it has gathered almost all directors and is a highly recommended service. Sugarsync is a product from sharpcast network storage company in California. It provides 2g free network hard disk spa
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
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.