Creating a Backup Script to periodically copy contents of network drive to my system

I would like to create simple shell script to backup every hour from 9:00AM to 6:00PM, the contents of one of my mapped network drive to my PC.

However, I would like to date and time stamp a directory for every backup created and possibly delete the most oldest every seven days. e.g.  C:\0428061217\Backup_Files

I am new to this, please help for a dummy.....currently i am doing it manually using standard XCOPY command from one drive to another. Now I wish to automate and at the same time want to make sure I do not overwrite the previous backup.

Who is Participating?
dooleydogConnect With a Mentor Commented:
you can use the backup utility built in to Windows Server 2003 to backup data, in this case a mapped drive to your machine, or whatever location you need. you will need to set up the scheduling for it to run every day, and it will overwrite the previous backup for any particular day.

scheduling this is easy also, use the wizard, and it will walk you right through it.

Be sure to have a drive mapped to the destination.

Alternatively, you can use a new tool from MS called SyncToy, although this will not keep several copies, only one.

Good Luck,
yajeshAuthor Commented:
Thanks! dooleydog,

My requirements are backups to be done every hour from Mon-Fri 9:00-6:00 and delete the oldest backup directory.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.