Hi! Using "export", it seems to be easy to do a "backup" of content within Zope. But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually... Is there any way to "script" this, so a backup can be done automatically? --- Thanks. Thomas
with wget you can pass in username and password but i haven't tried to do exports this way. let us know if it works. :) for example: /usr/bin/wget -O - --http-user=username --http-passwd=password localhost/path/to/url/to/call and then cron it. <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net
From: "Thomas Runge" <t.runge@newage-avkseg.com> Date: Wed, 11 Dec 2002 15:04:18 +0100 To: <zope@zope.org> Subject: [Zope] How can I "export" objects without user interference
Hi! Using "export", it seems to be easy to do a "backup" of content within Zope.
But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually...
Is there any way to "script" this, so a backup can be done automatically?
--- Thanks. Thomas
Hi George,
with wget you can pass in username and password but i haven't tried to do exports this way. let us know if it works. :)
for example:
/usr/bin/wget -O - --http-user=username --http-passwd=password localhost/path/to/url/to/call
I just gave "wget" a try and it works fine! Thanks a lot! Doing a Zope-Backup via "export" IMHO seems to be better than copying fs.var, because fs.var normally is growing fast... --Thomas
On Wed, Dec 11, 2002 at 03:04:18PM +0100, Thomas Runge wrote:
But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually...
Is there any way to "script" this, so a backup can be done automatically?
If you google for "zope backup howto" you'd find this: http://www.zope.org/Members/dlutzy/Zope_backup_meta-howto which is a list of backup-related links. If you have access to the server on which Zope is running, you would probably be better off just backing up your ZOPE_DIR/var/Data.fs file, which works really easily as all changes are appended at the end so you can just copy/scp/rsync it even while Zope is running. As for scripting it - use cron or windows task scheduler and write a script that copies the file. If you don't have access to the server, and you really need to use the export function, you should be able to pass the user/pass with a command-line HTTP client like wget, so you can still do it from a script, e.g.: $ wget --http-user="donald" --http-password="duck" http://myserver.com:8080/manage_exportObject?id=some_folder&download:int=1 Sorry, I don't know the windows equivalent. Hope that helps, Felix.
Hi Thomas, --On Mittwoch, 11. Dezember 2002 15:04 +0100 Thomas Runge <t.runge@newage-avkseg.com> wrote:
Hi! Using "export", it seems to be easy to do a "backup" of content within Zope.
But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually...
Is there any way to "script" this, so a backup can be done automatically?
Sure. But its more easy if you just copy your Data.fs(-es) to a save place. This can be done online, e.g. without stopping Zope. Most people do so with a simple cron job. Regards Tino
I would think that copying Data.fs is probably a better way of doing your backup. Especially as it's a filestore that keeps changes. manage_exportObject is in OFS.ObjectManager which would do the export for you. A On 11/12/02 2:04 pm, "Thomas Runge" <t.runge@newage-avkseg.com> wrote:
Hi! Using "export", it seems to be easy to do a "backup" of content within Zope.
But to do this, I have to log in (of course I have to supply user-name and password) before selecting my object to backup and selecting "Export". So I will have to do every "backup" manually...
Is there any way to "script" this, so a backup can be done automatically?
--- Thanks. Thomas
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Andrew Veitch -
Felix Ulrich-Oltean -
george donnelly -
Thomas Runge -
Tino Wildenhain