Copying changed files into another directory

Hi,

I currently have a few servers located on isolated networks across the internet.  To back them up, we currently VPN in, map a network drive and run an xcopy command to only copy the files have have been changed/modified.  The VPN is limited to 1mbit and it takes an average of 2.5s for each file to transfer.  As you can imagine, if 30,000 files have changed during the course of the day it is impossible to back up everything.

I'm looking to write something in vb.net which:

initially:
1)  Looks recusively into a starting directory and puts its structure and file data into a text file (with date last modified etc)

and afterwards:

1) Looks recursively through the same starting directory, comparing the files and folders to that text file saved beforehand.
2) If the file/folder is new and/or has been changed, copy/create this file into a seperate backup directory, keeping the folder structure.
3) Add the paths of deleted files into a text file
4) Update or Create the text file again with the new file/folder structure

We'll then be able to FTP in to download the changed files.
Could someone tell me whether this is an efficent way of doing it or are there other options I should consider?
jonbutler_ukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DabasCommented:
Hi jonbutler_uk:
Instead of putting the structure into a text file and then later comparing, why not check the archive bit of every file?
You can search for all the files that have the archive attribute and after copying them make sure the attribute gets reset
A file that gets modified or added will automatically gets the attribute set.
This is similar to using xcopy /a

Dabas

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.