Pages

Sunday 26 February 2012

How to setup a task to delete the old backup files or log files from the server ?



Cleaning up the servers disks on daily basis is very important task for smooth functioning of servers.We have seen many times our report servers went down  and database backup failed due to the lack of disk space.
It is a tedious task to log in to the servers and delete the old files manually on regular basis. It will be more tedious if you need to manage more servers.The below VB script will help you to schedule the clean up job using a Windows Task Scheduler.

Cleanupfolder.vbs

















This VB script will help to remove files from the folders which is older than the retention days mentioned in the function call.Now this can be scheduled to run on specified schedule using windows task manager. The account in which this task is scheduled should have full security right on the folders to perform this task. The VB script file is downloadable at  http://dl.dropbox.com/u/64219284/PracticalSQLDba/CleanUpfolder.vbs

Hope this will help you to save lot of time!






3 comments:



  1. Thân hình Ngũ tinh Đấu Tông cường giả nhanh chóng từ giữa không trung ngã xuống, Tử Điện Mãng, Khiếu Thiên Hổ, cùng Thông Thiên Thử chà đạp chết không còn có khả năng sống lại.
    đồng tâm
    game mu
    cho thuê nhà trọ
    cho thuê phòng trọ
    nhac san cuc manh
    số điện thoại tư vấn pháp luật miễn phí
    văn phòng luật
    tổng đài tư vấn pháp luật
    dịch vụ thành lập công ty trọn gói
    http://we-cooking.com/
    chém gió
    - Thông Thiên Thử, nhớ kỹ trữ vật giới chỉ.

    Khiếu Thiên Hổ vội vàng hô to, một ngũ tinh Đấu Tông trữ vật giới chỉ có tài phú rất lớn.

    - Biết rõ rồi, còn phải chờ ngươi nói sao.

    Thông Thiên Thử đã sớm nhìn ngũ tinh Đấu Tông một lược, nó gở xuống trữ vật giới chỉ sau đó nhảy lên giữa không trung.

    - Chủ nhân.

    Khiếu Thiên Hổ, Tử Điện Mãng, Yêu Cơ, Thông Thiên Thử giết ngũ tinh Đấu Tông, sau đó quay lại bên người Nhạc Thành.

    Chỉ một lát sau, hai Đấu Tông rơi rụng, người Huyễn Linh môn đã sớm sinh lòng

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete