A lot of files are uploaded on the backup server, so a script is used for batch processing to delete the files n days ago. The script contains only one sentence, as shown below:
Delfiles. bat
forfiles /p E:\db_backup_history\dave /m * /d -20 /c "cmd /c del @file"forfiles /p E:\db_backup_history\anqing /m * /d -20 /c "cmd /c del @file"
Add the forfiles command according to your own directory, and finally add the batch processing to the scheduled tasks of the system. execute the tasks on a regular basis.
Bytes -------------------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!
Skype: tianlesoftware
QQ: tianlesoftware@gmail.com
Email: tianlesoftware@gmail.com
Blog: http://www.tianlesoftware.com
WEAVER: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
LinkedIn: http://cn.linkedin.com/in/tianlesoftware
------- Add a group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, reject the application ----
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823
Dba6 group: 158654907 dba7 group: 172855474 DBA group: 104207940