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
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
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
manager Alliance Forum to download permission restoration). we need to create the same user name as the original system.For text processing of backup permissions, we first need to remove the host name before the user name and (OI) (CI) and other redundant stuff.As shown below:D: estdddd BUILTINUsers :( OI) (CI) RCOMPUTERl :( OI) (CI) FNt authoritysystem :( OI) (CI) FShould be changedD: estdddd Users: RBl: FSYSTEM: FThen remove the inheritance of the
We all know that the main function of the log file is to restore the data of the MySQL database. Therefore, the log file maintenance of the MySQL database is also very important. When MySQL and log files are used together.
You sometimes want to delete/back up old log files and tell MySQL to start recording in new files.
This article describes how to enable new log files, including updates and general logs.
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 file for cumulative backup: exp_cumu.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=cumulativ
We will use the scheduled tasks in windows to back up the database. 1. copy the folder to a fixed folder, and 2. copy the folder to the automatically generated folder on the current day:
1: Our company is going to create an application for "counting offline movies every day". I will first make this function into a WinForm program to generate an exe file.
2: Choose Start> program> attachment> System Tools to open the scheduled task window.
3: Double-c
The program needs to overwrite the backup file because of the project.
(The original solution is to use VB6 to traverse the file, do not spit slot)
Requirement 1: Check the modification time of each file, if it is less than the date parameter, then backup (and delete);
Requ
LSYNCD on which server to start, this server is like when the server is synchronized, other servers if more files will be deleted, fewer files will be synchronized from this server.
Modifying the contents of the file will also be synchronized
Rsync can achieve synchronization/backup of files, install configuration step to Linux under rsync Backup/Sync files
LSYN
Atitit. Improve backup file copy speed (3)----Create a synchronous delete script
1. Two ways to create a synchronous delete script: 1
2.1 Info2 file from Recycle Bin ... 1
3. Cleanup ends in post-snap comparison 1
4. NPP replace Gene del from LST 1
5. Code 2
1. Two ways to create a synchronous delete script :
2.1 Info2 f
Knowledge of Linux commands, help, basic file operations, backup commands,vi editor usage1. Understanding Linux commands1)thelinux command is complete with a class of functions, options complete specifically. 2) command ----Shell(command interpreter)----- Kernel (kernel) This is the command execution process;Depending on whether the command is part of the Shell , the command is divided into internal command
1.tar-p whether to keep the root directory-T view the contents of the compressed file-n 201401010 backup date aftertar -zcpf/tar/data2. tar. GZ/ETC/*conf[[email protected]/]# CD Tar/[[email protected] tar]# ll total 80-rw-r--r--1 root ro OT 39051 09-08 23:42 data1.tar.gz-rw-r--r--1 root root 39046 09-08 23:43 data2.tar.gz2.dump-0 Full Backup3.restore Recovery-TF View-RF Recovery[email protected] dump]# dump
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.