https://github.com/burnsoftnet/dailyarchivelogs-batch
The Archive Logs Daily Batch script was created work with Task Scheduler to archive a certain directory log files on a regular basis. This script however is just for log files, it is is pretty much anything in that directory that you set the target for, it just so happens that the directory we targeted was nothing but logs. The script will create a directory based on the current day in the Target \Archive Folder ( this archive folder is created if it doesn’t exist ), then it will look at all the files in the target and zip everything older then 2 days into the cab file, then it will take that cab file and move it to the archive directory. After the Cab file has been moved, it will then delete all the log files older then 2 days. This script was mostly ran via Windows Task Scheduler, on a daily basis.
https://github.com/burnsoftnet/dailyarchivelogs-batch
archived batch cab task-scheduler
Last synced: 4 months ago
JSON representation
The Archive Logs Daily Batch script was created work with Task Scheduler to archive a certain directory log files on a regular basis. This script however is just for log files, it is is pretty much anything in that directory that you set the target for, it just so happens that the directory we targeted was nothing but logs. The script will create a directory based on the current day in the Target \Archive Folder ( this archive folder is created if it doesn’t exist ), then it will look at all the files in the target and zip everything older then 2 days into the cab file, then it will take that cab file and move it to the archive directory. After the Cab file has been moved, it will then delete all the log files older then 2 days. This script was mostly ran via Windows Task Scheduler, on a daily basis.
- Host: GitHub
- URL: https://github.com/burnsoftnet/dailyarchivelogs-batch
- Owner: burnsoftnet
- License: mit
- Created: 2017-01-07T15:58:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T13:08:15.000Z (over 7 years ago)
- Last Synced: 2025-10-05T11:48:23.361Z (8 months ago)
- Topics: archived, batch, cab, task-scheduler
- Language: Batchfile
- Size: 99.6 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DailyArchiveLogs-Batch
The Archive Logs Daily Batch script was created work with Task Scheduler to archive a certain directory log files on a regular basis. This script however is just for log files, it is is pretty much anything in that directory that you set the target for, it just so happens that the directory we targeted was nothing but logs. The script will create a directory based on the current day in the Target \Archive Folder ( this archive folder is created if it doesn’t exist ), then it will look at all the files in the target and zip everything older then 2 days into the cab file, then it will take that cab file and move it to the archive directory. After the Cab file has been moved, it will then delete all the log files older then 2 days. This script was mostly ran via Windows Task Scheduler, on a daily basis.