Delete backups from Passport 2 drive using WD Backup

I purchased a 2 TB Passport 2 drive several months ago and it is now full because the WD Backup software does full backups, not incremental, and has no way to automatically delete a backup after a certain period of time.  Is there a way to delete specific backups using this software?  When I select delete backup, it only gives me the option of deleting the oldest version of the backup.  I'd like to remove some of intermittent backups, maybe two out of every three days, at least for BU's over a month old.

I may have to purchase some other backup software to get incremental backups and automatically delete aged backups.  Any body have any suggestions?
LVL 53
Dale FyeOwner, Dev-Soln LLCAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexProject Systems EngineerCommented:
If you don't mind running a script

Get-ChildItem –Path  “C:\Backups” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-5) | Remove-Item

That will delete any backups older than 5 days.

You will need to change your c:\backups to the backup location.

BTW run this as a scheduled task :-)

Cheers

Alex
Dale FyeOwner, Dev-Soln LLCAuthor Commented:
Alex,

I would like to keep some of those backups.

Is there similar script that will work for a single date?
AlexProject Systems EngineerCommented:
You stipulated you wanted to remove backups after a certain date right? So what is that date from today? 2 months?

Get-ChildItem –Path  “C:\Backups” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-60) | Remove-Item

I mean that script will do the job however if you want to remove "intermittent backups" you'll need to explain what you mean

Cheers

Alex
Dale FyeOwner, Dev-Soln LLCAuthor Commented:
What I would like is to be able to delete backups from 2 Jan - 14 Jan, but I would settle for a specific date

Does that all go a .bat file a vbscript file, or something else?
AlexProject Systems EngineerCommented:
the above is a powershell script...

ummmm, I could figure it out.. give me 2 minutes
AlexProject Systems EngineerCommented:
$path=C:\backup
$startdate=[datetime]::ParseExact("01-09-2014 10:00","dd-MM-yyyy HH:mm",$null)
$enddate=[datetime]::ParseExact("01-09-2014 16:00","dd-MM-yyyy HH:mm",$null)

Get-ChildItem -File -Path $path -Recurse | where {$_.CreationTime -gt $startdate -and $_.CreationTime -lt $enddate}| Remove-Item

I think that should work, you'll need to specify your dates.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Dev-Soln LLCAuthor Commented:
Alex,

I'm not sure this is going to work for the files on the Passport that were backed up with WD Backup.   The file structure of that drive looks like:

the attached image, but when I go into the WD Backup software to the restore option, it shows backups for
Passport-Drive-Structure.jpg
AlexProject Systems EngineerCommented:
I smiled.... :-) Alex's homework..

Um, right so basically that's your backup location, in there you should have files, some of which extremely large files, can you post up an example of a file which is quite big, that will be your single backup file...

If you use treesize, it should tell you which folders are the biggest.

Cheers

Alex
Dale FyeOwner, Dev-Soln LLCAuthor Commented:
So, in the folder structure that looks like:

H:\WD Backup.swstor\Admin\History\Volume{...}\VMWare\

I see files that look like:   VMName.nvram###aaaa

where the ###aaaa looks to be sequence numbers and with modified dates ranging from 12/23/16 - 2/4/17.

This is because I'm making changes in my VM daily, this is where I do most of my work.  In other folders, it may only have two copies of a file, one which indicates the first backup of the file, dated 12/23/16 and another which looks like:  filename.extension with the added characters "_LAST".  I assume that when the backup occurs, it compares file properties of this "_LAST" copy to the current version and then creates a new copy if there have been changes.

The problem is that many of these VM files are over 4 G, and since several of the files inside the VM are changing almost every day, it is backing up the entire VM drive.  So, as an example, one of my VMs has 60 GB dedicated to it, and the BU software is backing up that entire 60 GB VM every day, despite the fact that only four or five actual files might be changing in the VM on a given day.  I could go in that folder and delete all the files from January 2nd, but I don't know what effect that will have on the WD backup software.

I'm tempted to simply reformat that 2TB drive and try something different..
Dale FyeOwner, Dev-Soln LLCAuthor Commented:
Alex,  appreciate the trouble you went to on this one.  But I decided to take the easy way out.  I purchased Acronis True Image as had been recommended to my on several occassions.  I've been running it for a couple of months now and am very pleased.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Western Digital

From novice to tech pro — start learning today.