Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to zip file

$
0
0

Currently we are backing up all our event logs to one primary file server but as time passed, the size grew tremendously. I am currently looking for a script which I can execute monthly to zip-up the event logs to the archive folder, naming the zip file according to year+month and delete the event logs once it runs successfully.

Example below are the file structure, inside the D:\EventLog, there are subfolder which stores the event logs. What I would like to do is to have a script which can zip the event logs on a certain months, copy to the archive folder and delete the events at the D:\EventLog




Viewing all articles
Browse latest Browse all 15028

Trending Articles



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