[Owncloud] Backup ownCloud?
Thomas Olsen
thomas at tanghus.net
Wed Nov 30 12:08:18 UTC 2011
On Tuesday 29 November 2011 16:35 Robin Appelman wrote:
> As far as I know, exporting the calendar without first being logged in
> through the session is not possible.
Well, with a clear head this turn out to be a lot easier: The code was already present in index.php ;-D
If I had read a few more lines of code I would have noticed that it did check for http
credentials and that it didn't work. A search lead me to:
https://bugs.gentoo.org/show_bug.cgi?id=221043#c6
which said that I needed the '--auth-no-challenge' parameter.
wget --auth-no-challenge --http-user=xxxxxx --http-password=xxxxxx -O cal.ics \
http://localhost/owncloud/apps/calendar/export.php?calid=1
Now I will try to modify export.php to make it work for contacts as well. It should be pretty
straight forward. If I can get it to work should I talk to Jakob Sack about adding it to the
contacts UI the same way as it is for calendars?
> On Tue, Nov 29, 2011 at 16:31, Thomas Olsen <thomas at tanghus.net> wrote:
> > On Tuesday 29 November 2011 16:22 Thomas Olsen wrote:
> >> On Tuesday 29 November 2011 16:18 Rok Andrée wrote:
> >> > I took a quick look and you'' probably need to send a post request
> >> > with 'password' and 'user' params. But i dont know how it will
> >> > handle it.>>
> >> Didn't think of that. I'll give it a try :-)
> >
> > Nope. Didn't work. I tried:
> >
> > wget --post-data="user=XXXX&password=XXXX" -O cal.ics
> > http://owncloud.xxxx.net/apps/calendar/export.php?calid=1
> >
> > but still only got the login form.
--
Med venlig hilsen / Best Regards
Thomas Olsen
More information about the Owncloud
mailing list