Backup to Pen Drive and vice versa
Hi all
Recently I almost got burned by my laptop hard drive acting up... this gave me an idea about work backup.
How would I copy a hard drive folder say _Work to a USB pen drive.....or copy only what had changed? Suppose I could use date created?
Not sure how I would detect a pen drive that had just been plugged in though
Any thoughts??
George
Re: Backup to Pen Drive and vice versa
make a .rar each day and copy to several disks or use visual source safe.
Re: Backup to Pen Drive and vice versa
i would like to automate it....every time I plug in pendrive it backs up adat in that folder where it can..... and same when I go home to main dev machine.... so I would have backup in synch
ie no thought required!!!
Re: Backup to Pen Drive and vice versa
Every minute or so check if a new drive being added , your pen drive.
Re: Backup to Pen Drive and vice versa
how do I do that ?? The copying I think I have covered
Re: Backup to Pen Drive and vice versa
Quote:
Originally Posted by Ggalla1779
i would like to automate it....every time I plug in pendrive it backs up adat in that folder where it can..... and same when I go home to main dev machine.... so I would have backup in synch
ie no thought required!!!
You can use the code that i provided
http://www.vbforums.com/showthread.php?t=450239
and to automate it well off the top of my head i would say that your app would need to reside on the pen drive and have it set to autoplay when the device is plugged in. The only other thing you would need is a way for the app to determine which machine its running again (IE by using the machine name)
Re: Backup to Pen Drive and vice versa
thats clever you turned problem on its head...I didnt think to put the app on the pen drive
Will give it a bash