Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Complex Backup Script

Status
Not open for further replies.

DbHd

Programmer
Dec 20, 2004
39
I started a script to copy most of the "My Documents" folders to another location on my local PC. I've been writing it basically by wearing down the problems but now I've spent way to much time and am hoping for a clean, simple solution.

I need it to:
1. Copy all folders and docs within, except the "My Pictures", etc folders that won't copy.
2. Limit the number of backups to 8 by deleting the earliest folders.
3. Schedule and run unattended during the night.

I'm on an XP box that is a member of a domain. I have admin rights to my PC and have had the scheduler service work.

I didn't include code on purpose because I didn't want to get into a "patch-it" thing. If it's necessary I'll provide what I have, but I'm thinking this is something the experts already have on the shelf.

So, Does anybody have something already written they will share?

Earle
 
This is easy enought to do. I would recommend using robocopy to do the copy and use vbscript to put the data into a folder based on day of the week.

The nice thing about robocopy is that it can exclude old/unchanged files from the copy, so you could very easily maintain 5 days worth of data and only overwrite the files that have changed. You can schedule it with the Windows Scheduler.

You might also want to check out the new Windows XP Power Toy for file sync.


I hope you find this post helpful.

Regards,

Mark
 
I hadn't heard of either application and that's sad. I find I'm becomming one of those old guys who tell you all about managing a bevy of NT4 servers when they were the new technology.

I'll play with these and march on. I may be back if I'm too damn old to understand them.

Earle
 
You will find Robocopy in the Resource Kit tools which is a free DL from Microsoft.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top