Hi Daniel,

You can still copy a file in Windows, even if it's being actively written to.

(Whether it's in a stable or corrupt state is another
question--however, if you're backing up frequently, the probability of
getting a good backup rises, even if you have to go a few days back!)

Batch scripting should work fine. If you don't want to use batch
scripting, you could use Python.

Microsoft offers this example of registry work in Python:
http://www.microsoft.com/technet/scriptcenter/scripts/python/os/registry/default.mspx?mfr=true

There are several others (google "Python Win32 registry").


A bulk backup of the registry would be simpler though!

Going back to batch-scripting, you could run the "reg" command-line
tool to backup under selected keys, as described here, under "method
2(a)":  http://windowsxp.mvps.org/registry.htm

reg export HKEY_CURRENT_USER user.reg
reg export HKEY_LOCAL_MACHINE machine.reg


You could also run these commands from a Python script with something like:
import subprocess
subprocess.call(["dir", "/b"], shell=True)
(This example just lists a directory, of course.)


A few options which come to mind for online backup:

* PutPlace (support your local startup!)
* Live Mesh (Martha Rotter said last week that there was 25GB of free
storage on this service, for users in Ireland.)
* iDrive or Mozy (2GB of free storage)

I know that iDrive can be set to automatically backup selected files,
once a day for example. If your batch or python script could place the
registry backup files in a "well-known" location, iDrive would take
care of the daily upload.

Likewise, select an entire directory to backup in the iDrive GUI for
the "normal files" and perhaps for the SQL database too.


You could also try IronPython for scripting on Windows:
http://www.ironpythoninaction.com/


Hope the above helps!

Kevin.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to