功能:打包檔案列表中的檔案,存為帶日期標籤的檔案,每天定時備份一次,同時為避免備份量過大,只保留每月底和近一周的副本,最多共18個備份。
windows下 backup.cmd
rem @echo off
rem configure rar tool path
set rartool="c:/program files/winrar/rar.exe"
rem configure project name
set prjname="project"
rem configure include list file name
set exclist=%prjname%_exclude.lst
rem configure exclued list file name
set inclist=%prjname%_include.lst
rem get date string
set date_str=%date:~0,4%%date:~5,2%%date:~8,2%
rem constructe target file name
set backup_filename=%prjname%_%date_str%.rar
rem back up file with file list
%rartool% a -x@%exclist% "%backup_filename%" @%inclist%
rem todo 刪除舊的備份
linux下
VSS自動備份指令碼
1。備份指令碼 echo 開始 set vss install path d vss set vss db e vss set backup file e vssbackup date time backup.ssa set vss admin name admin set vss admin pa...
LINUX 自動備份指令碼
bin sh export oracle base soft ora9 export oracle home soft ora9 product 9.2 export path oracle home bin oracle home apache apache bin path export ora...
oracle rman自動備份指令碼
bin sh opt oracle bash profile pwd sys bak dir opt oracle backup oatest begin seq sqlplus s as sysdba crosscheck backupset crosscheck archivelog all d...