deleting old copies

User discussion and information resource forum for Image products.

deleting old copies

Postby chris456 » Mon Jan 16, 2012 1:47 am

I'm trying to create a backup schedule so that I have 1 Weekly followed by daily changes, second week the same backup schedule. For the third week I want to erase the full backup + the changes so I only have 1 backup and then I'll create a new backup. Is there a way to do this in Image for Windows? It needs to run automatically.

Thanks,
Chris
chris456
 
Posts: 3
Joined: Mon Jan 16, 2012 1:42 am

Re: deleting old copies

Postby TeraByte Support(PP) » Mon Jan 16, 2012 10:55 am

Chris,

You could try using IFWRotate.
Paul Purviance
TeraByte Support
TeraByte Support(PP)
 
Posts: 1108
Joined: Thu Aug 11, 2011 5:51 pm

Re: deleting old copies

Postby chris456 » Mon Jan 16, 2012 2:20 pm

Thanks I'll take a look at IFWRotate. I also found the following vbs script.

strOldestFile = ""
dtmOldestDate = Now

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("J:\My backups")

intFolderSize = Int((objFolder.Size / 1024) / 1024)

If intFolderSize >= 25 Then
Set colFiles = objFolder.Files

For Each objFile in colFiles
strFile = objFile.Path
dtmFileDate = objFile.DateCreated
If dtmFileDate < dtmOldestDate Then
dtmOldestDate = dtmFileDate
strOldestFile = strFile
End If
Next

objFSO.DeleteFile(strOldestFile)
End If
chris456
 
Posts: 3
Joined: Mon Jan 16, 2012 1:42 am


Return to Image for DOS/Linux/Windows