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

Posted on 2006-04-28
Medium Priority
Last Modified: 2010-04-18
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.

Question by:yajesh

Accepted Solution

dooleydog earned 200 total points
ID: 16563548
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,

Author Comment

ID: 16563737
Thanks! dooleydog,

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


Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Integration Management Part 2
Loops Section Overview

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question