Announcement

Collapse
No announcement yet.

Delete old backups

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delete old backups

    I need a script that will delete backups that are older than 2 weeks. This script needs to run automatically or could be set so it could be run manually once a week The below image shows the backup structure. There are multiple files in each of the date named folders though this should not cause any issue (I hope) but if it does then Security permissions can be changed to allow even the guy next door to have Full Control.

    I have been unable to find a script that I can modify for this purpose, if indeed I maintain the mental facilities to even do this.

    Click image for larger version

Name:	out-of-date-backups.png
Views:	1
Size:	67.9 KB
ID:	507179

    Thank you, this is appreciated even if you only read the post.
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

  • #2
    Any particular language, Chris?
    If its PowerShell, this should work, and can be scheduled
    Delete folders older than x days:
    http://www.romanstefko.com/2013/07/d...ng-powershell/

    Powershell Scheduled Task:
    https://www.google.co.uk/search?q=po...wBQ&gws_rd=ssl
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Originally posted by Ossian
      Any particular language, Chris?
      English Tom, just English.

      Thanks, will give it a go and get back to you. Much appreciated.
      1 1 was a racehorse.
      2 2 was 1 2.
      1 1 1 1 race 1 day,
      2 2 1 1 2

      Comment

      Working...
      X