Windows 7 Task Scheduler - Delete Old Backups Automatically

5,855 Views | 4 Replies | Last: 12 yr ago by AggieJason
Dill-Ag13
How long do you want to ignore this user?
Hi all,

I'm using Windows 7's automatic backup function to backup every Sunday night at 7pm. I'm backing up from my 128GB SSD ultrabook to a 64GB microSD, unfortunately I run out of room after 1 backup. Is there a way to delete my old backup everytime I write a new one at 7pm the following Sunday?

TIA
c-jags
How long do you want to ignore this user?
create a text file called delete.bat (change the .txt to .bat and it becomes a batch file that can be run

paste this in there, changing the directory:

quote:
del /f/q/s c:\YOURDIRECTORYHERE\*.*


save it on your computer, probably at the root of the C:

Go to Task Scheduler (Control Panel Administrative Tools I think) and create a task to run the batch file weekly before your backup.
Dill-Ag13
How long do you want to ignore this user?
I see how to get into the task scheduler. Where do place the task? In the same "windowsbackup" subdirectory?
c-jags
How long do you want to ignore this user?
Did you do a basic task?

When it's looking for the program/script you need to point it to that .bat file you created. I don't think you need to designate a location for the "task" itself, just the batch file so the task knows what to run.
Dill-Ag13
How long do you want to ignore this user?
Ok, thank ya
AggieJason
How long do you want to ignore this user?
Windows Backup in Win7 automatically overwrites the image it creates with the one it's about to create; deleting anything will likely screw up your backup and render it useless if/when you have to restore it.

The reason why the size is growing is because Windows keeps a catalog of file/system changes and makes a snapshot of these changes. IN your initial backup, the system makes a "base" image. After your initial backup, you're only backing up what changed from the first backup to the second, the second to the third, etc. Deleting any of these will break the backup.

Your best bet is to throw in a secondary drive or buy a sizable external. Also, be careful... flash memory like a microSD is extremely risky - they don't tend to fare well with heavy read/writes like what's done during a system backup.

[This message has been edited by AggieJason (edited 2/19/2013 10:45p).]
Refresh
Page 1 of 1
 
×
subscribe Verify your student status
See Subscription Benefits
Trial only available to users who have never subscribed or participated in a previous trial.