Quantcast
Channel: Backup – Windows and Windows Server forum
Viewing all articles
Browse latest Browse all 3323

Script to Delete Files From Multiple folders

$
0
0

HI All,

 I'm backing up SQL Database files into a local server and each one got the Folder.

 So i need a script go through these folders and delete backup files older than 7 days?

 I'm using WINSCP command to get the files may be can delete from here?

option batch on

option confirm off
open sftp@DMZSQL
option transfer binary
get /* D:\SQL\*
exit

As


Viewing all articles
Browse latest Browse all 3323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>