Howdy, Windows 2000, Zope 2.5.1 I'd like to move data.fs from \Program Files\Zope\var\data.fs to another location. I tried \Program Files\Zope\start.bat -p "c:\new\location\data.fs" , no good. TIA, Kent
On Thu, Aug 22, 2002 at 07:09:35PM -0500, kent@springfed.com wrote:
I'd like to move data.fs from \Program Files\Zope\var\data.fs to another location.
I tried \Program Files\Zope\start.bat -p "c:\new\location\data.fs" , no good.
Unless you severely hack the source code, the best you can do is set the environment variable INSTANCE_HOME to its new location. So, if you set INSTANCE_HOME to c:\new\location, you'd need to move everything in \Program Files\Zope\var (including the var directory itself) to c:\new\location. -- Michael S. Fischer / michael at dynamine.net / +1 650-533-4684 Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 23 August 2002 00:40 am, you wrote:
On Thu, Aug 22, 2002 at 07:09:35PM -0500, wrote:
I'd like to move data.fs from \Program Files\Zope\var\data.fs to another location.
I tried \Program Files\Zope\start.bat -p "c:\new\location\data.fs" , no good.
Unless you severely hack the source code, the best you can do is set the environment variable INSTANCE_HOME to its new location. So, if you set INSTANCE_HOME to c:\new\location, you'd need to move everything in \Program Files\Zope\var (including the var directory itself) to c:\new\location. No....why not just create a shortcut? (Or, in Linux land, a soft link...) That way you can move your Data.fs anywhere you want, like a new disk that has more space. You move your data.fs to where ever, then create a shortcut, put the shortcut to where the data.fs originally is placed by zope, rename "shortcut to data.fs" to "data.fs", and voila, you're all done. No hacking up anything necessary. :-)
Russell - -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Zj2vAqKGrvVshJQRAiYfAKDJcSLdsJteLpEkQmMbKAjhGuPhwQCfaGZC DOju41WzRWQr+nwMgby5bjw= =TjTg -----END PGP SIGNATURE-----
On Friday 23 Aug 2002 2:50 pm, Russell Hires wrote:
On Friday 23 August 2002 00:40 am, you wrote:
On Thu, Aug 22, 2002 at 07:09:35PM -0500, wrote:
I'd like to move data.fs from \Program Files\Zope\var\data.fs to another location.
I tried \Program Files\Zope\start.bat -p "c:\new\location\data.fs" , no good.
Unless you severely hack the source code, the best you can do is set the environment variable INSTANCE_HOME to its new location. So, if you set INSTANCE_HOME to c:\new\location, you'd need to move everything in \Program Files\Zope\var (including the var directory itself) to c:\new\location.
At startup Zope looks for a file called custom_zodb.py which can contain a definition of an alternative storage. It is usually used to specify ZEO, bsddbStorage.Full, etc, but it can also be used to specify a FileStorage in a different directory.
No....why not just create a shortcut?
No, Windows shortcuts dont work that way.
(Or, in Linux land, a soft link...)
A link would work until the next pack. The packed file would get created in the original location.
At startup Zope looks for a file called custom_zodb.py which can contain a definition of an alternative storage. It is usually used to specify ZEO, bsddbStorage.Full, etc, but it can also be used to specify a FileStorage in a different directory.
I have been unable to find the syntax for this definition. if I copy the contents of var to c:\new\location\var what should I put in custom_zodb.py ? Thanks, Kent
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
No....why not just create a shortcut?
No, Windows shortcuts dont work that way.
Sure they do. I have a few Access databases at work that I do that very thing. Works just fine...
(Or, in Linux land, a soft link...)
A link would work until the next pack. The packed file would get created in the original location.
True...that could be a problem. You mean pack like version of zope? Or pack like database type pack? Russell - -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9ZvsUAqKGrvVshJQRAnEVAJ43VDwE20NXGBcojFIoLElIRqN0lACeNriI oFFdEZ8j5MctOaCcNB1gHd0= =MuaL -----END PGP SIGNATURE-----
Am Sam, 2002-08-24 um 05.18 schrieb Russell Hires:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
No....why not just create a shortcut?
No, Windows shortcuts dont work that way.
Sure they do. I have a few Access databases at work that I do that very thing. Works just fine... Ever considered, that Access has extra code to deal with ShortCuts? Zope is portable software ;) True...that could be a problem. You mean pack like version of zope? Or pack like database type pack? Pack like Pack Database in ControlPanel ;)
Andreas
Andreas Kostyrka wrote:
Am Sam, 2002-08-24 um 05.18 schrieb Russell Hires:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
No....why not just create a shortcut?
No, Windows shortcuts dont work that way.
Sure they do. I have a few Access databases at work that I do that very thing. Works just fine...
Ever considered, that Access has extra code to deal with ShortCuts? Zope is portable software ;)
But NTFS has hardlinks. Granted I didn't know before recently, but you can learn about their existance here: http://www.atstake.com/research/advisories/2002/a081602-1.txt Yeah, it's a security advisory ;-). cheers, oliver
Am Sam, 2002-08-24 um 12.39 schrieb Oliver Bleutgen:
But NTFS has hardlinks. Granted I didn't know before recently, but you can learn about their existance here: http://www.atstake.com/research/advisories/2002/a081602-1.txt
Yeah, it's a security advisory ;-). Well, NTFS also has substreams (kind of Macish). And yes, because it's mostly unused, it's also a security nightmare :)
Andreas
kent@springfed.com writes:
Windows 2000, Zope 2.5.1
I'd like to move data.fs from \Program Files\Zope\var\data.fs to another location.
I tried \Program Files\Zope\start.bat -p "c:\new\location\data.fs" , no good. I think (but am not sure) that "Data.fs" is located via "CLIENT_HOME".
Search Zope.org for "CLIENT_HOME". Dieter
participants (7)
-
Andreas Kostyrka -
Dieter Maurer -
kent@springfed.com -
Michael S. Fischer -
Oliver Bleutgen -
Russell Hires -
Toby Dickenson