Discussion:
ReadDirectoryChangesW for continuous backup application (D4 Pro)
(too old to reply)
PStechPaul
2011-03-26 07:27:36 UTC
Permalink
I am interested in implementing a continuous backup which will detect file
changes and update a backup. I found a simple application that should work,
but it does not seem to do anything, and it might be a problem with Win7.
The source code for this component and demo is from Phaeteon:
http://www.torry.net/pages.php?id=252

There was a discussion of this here about a year ago:
http://groups.google.com/group/comp.lang.pascal.delphi.misc/browse_thread/thread/d77857a64746f038/7d3c9de5c5e355af?#7d3c9de5c5e355af

There are other examples here:
http://www.efg2.com/Lab/Library/Delphi/IO/Directories.htm

I found a useful backup utility written in Delphi, but it doesn't do
continuous backup on file changes. I thought I might use it as a starting
point:
http://www.brothersoft.com/tbackup-download-154.html

I became interested in doing something like this when I had problems with a
WD My Passport 320G external drive which came preloaded with SmartWare,
which was supposed to do continuous backups but it hogged system resources
(even with drive disconnected and backup turned off), and there was quite an
animated discussion about the problems, which were never really solved:
http://community.wdc.com/t5/WD-Smartware/WD-SmartWare-using-too-many-resources/m-p/159510

Any ideas? Thanks.

Paul
PStechPaul
2011-03-26 08:18:36 UTC
Permalink
Post by PStechPaul
http://www.torry.net/pages.php?id=252
Actually this works very well. I just had to add the event handlers to the
component.

It's quite interesting to log the activities by enabling the events on
subfolders as well. The log for C:\Users\Paul2010 appears at the end of this
post.

Paul

============================================================

Modified ntuser.dat.LOG1
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified ntuser.dat.LOG1
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified NTUSER.DAT
Renamed von Documents\BGF\Announcements-BGF.txt in
Documents\BGF\AnnouncementsBGF.txt
Modified Documents\BGF
Modified
AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\9b9cdc69c1c24e2b.automaticDestinations-ms
Modified
AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\9b9cdc69c1c24e2b.automaticDestinations-ms
Modified
AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\1b4dd67f29cb1962.automaticDestinations-ms
Deleted
c:\users\paul2010\AppData\Roaming\Microsoft\Windows\Recent\TestReload.php.lnk
Modified AppData\Roaming\Microsoft\Windows\Recent
CREATED AppData\Roaming\Microsoft\Windows\Recent\AnnouncementsBGF.txt.lnk
Modified AppData\Roaming\Microsoft\Windows\Recent
Modified AppData\Roaming\Microsoft\Windows\Recent\AnnouncementsBGF.txt.lnk
Modified
AppData\Local\Microsoft\Windows\History\History.IE5\MSHist012011032620110327\index.dat
Deleted c:\users\paul2010\AppData\Roaming\Microsoft\Windows\Recent\BGF.lnk
Modified AppData\Roaming\Microsoft\Windows\Recent
CREATED AppData\Roaming\Microsoft\Windows\Recent\BGF.lnk
Modified AppData\Roaming\Microsoft\Windows\Recent
Modified AppData\Roaming\Microsoft\Windows\Recent\BGF.lnk
Modified ntuser.dat.LOG1
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified AppData\Local\Microsoft\Windows\UsrClass.dat.LOG1
Modified AppData\Local\Microsoft\Windows\UsrClass.datd
Modified AppData\Local\Microsoft\Windows\UsrClass.dat
Modified AppData\Local\Microsoft\Windows\UsrClass.dat
Modified Documents\BGF\AnnouncementsBGF.txt
Modified Documents\BGF\AnnouncementsBGF.txt
Modified ntuser.dat.LOG1
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified ntuser.dat.LOG1
Modified NTUSER.DAT
Modified NTUSER.DAT
Modified NTUSER.DAT

Loading...