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

Posted on 2006-04-28
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
    LVL 9

    Accepted Solution

    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

    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

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now