[pmwiki-users] using rsync for wiki sync

12 views
Skip to first unread message

jdd

unread,
Dec 27, 2011, 8:06:43 AM12/27/11
to pmwiki...@pmichaud.com
Hello :-)

I'm in the way of migrating one pmwiki instence from a server to an
other one.

I will update the software (pmwiki) manually

May I use rsync to update the data (in wiki.d?)

thanks
jdd


_______________________________________________
pmwiki-users mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Patrick R. Michaud

unread,
Dec 27, 2011, 2:14:58 PM12/27/11
to jdd, pmwiki...@pmichaud.com
On Tue, Dec 27, 2011 at 02:06:43PM +0100, jdd wrote:
> Hello :-)
>
> I'm in the way of migrating one pmwiki instence from a server to an
> other one.
>
> I will update the software (pmwiki) manually
>
> May I use rsync to update the data (in wiki.d?)

rsync should work out okay, yes.

Pm

tamouse mailing lists

unread,
Mar 26, 2012, 11:15:15 AM3/26/12
to PmWiki Users
Doggone. I sent this to Pm and I meant it to go to the list. Apologies!


---------- Forwarded message ----------
From: tamouse mailing lists <tamous...@gmail.com>
Date: Mon, Mar 26, 2012 at 10:14 AM
Subject: Re: [pmwiki-users] using rsync for wiki sync
To: "Patrick R. Michaud" <pmic...@pobox.com>


On Tue, Dec 27, 2011 at 1:14 PM, Patrick R. Michaud <pmic...@pobox.com> wrote:
> On Tue, Dec 27, 2011 at 02:06:43PM +0100, jdd wrote:
>> Hello :-)
>>
>> I'm in the way of migrating one pmwiki instence from a server to an
>> other one.
>>
>> I will update the software (pmwiki) manually
>>
>> May I use rsync to update the data (in wiki.d?)
>
> rsync should work out okay, yes.
>
> Pm

I'd like to voice one caveat:

If you are using authuser.php script and protecting your pages, be
aware the encryptions in SiteAdmin.AuthUser do no translate across
installations (at least they haven't in my experience). So if you've
set this up, you may need to reencrypt the passwords on each end.
Better, I think, to just exclude the page from the rsync process
(especially if it's two-way synchronization).

 -tt

Patrick R. Michaud

unread,
Mar 26, 2012, 12:05:47 PM3/26/12
to tamouse mailing lists, PmWiki Users
On Mon, Mar 26, 2012 at 10:14:07AM -0500, tamouse mailing lists wrote:
> > rsync should work out okay, yes.
>
> I'd like to voice one caveat:
>
> If you are using authuser.php script and protecting your pages, be
> aware the encryptions in SiteAdmin.AuthUser do no translate across
> installations (at least they haven't in my experience).

Encryptions in SiteAdmin.AuthUser should also translate across
installations, as long as both installations support the same
types of encryption. In other words, there's nothing site-specific
about the encryption -- it simply uses PHP's crypt() function.

Pm

tamouse mailing lists

unread,
Mar 27, 2012, 2:47:49 AM3/27/12
to Patrick R. Michaud, PmWiki Users
On Mon, Mar 26, 2012 at 11:05 AM, Patrick R. Michaud <pmic...@pobox.com> wrote:
> On Mon, Mar 26, 2012 at 10:14:07AM -0500, tamouse mailing lists wrote:
>> > rsync should work out okay, yes.
>>
>> I'd like to voice one caveat:
>>
>> If you are using authuser.php script and protecting your pages, be
>> aware the encryptions in SiteAdmin.AuthUser do no translate across
>> installations (at least they haven't in my experience).
>
> Encryptions in SiteAdmin.AuthUser should also translate across
> installations, as long as both installations support the same
> types of encryption.  In other words, there's nothing site-specific
> about the encryption -- it simply uses PHP's crypt() function.
>
> Pm

Well, this is interesting. I have two identical installations on my
box, one for staging, one for production, synchronized via git. If I
set the password in staging, push to a .git repository, then update
the production wiki by pulling from the same repository, the passwords
do not work. The same thing happens going the other way. These are
side-by-side in the same directory under the farm:

/var/www/farm/var/
tamwiki/
tamwikistage/

so, what am i doing wrong?

Patrick R. Michaud

unread,
Mar 27, 2012, 8:11:53 AM3/27/12
to tamouse mailing lists, PmWiki Users
On Tue, Mar 27, 2012 at 01:47:49AM -0500, tamouse mailing lists wrote:
> On Mon, Mar 26, 2012 at 11:05 AM, Patrick R. Michaud <pmic...@pobox.com> wrote:
> > Encryptions in SiteAdmin.AuthUser should also translate across
> > installations, as long as both installations support the same
> > types of encryption.  In other words, there's nothing site-specific
> > about the encryption -- it simply uses PHP's crypt() function.
>
> Well, this is interesting. I have two identical installations on my
> box, one for staging, one for production, synchronized via git. If I
> set the password in staging, push to a .git repository, then update
> the production wiki by pulling from the same repository, the passwords
> do not work. The same thing happens going the other way. These are
> side-by-side in the same directory under the farm:
>
> /var/www/farm/var/
> tamwiki/
> tamwikistage/
>
> so, what am i doing wrong?

I don't know -- perhaps something else is going on here.

(1) What are the versions of PHP on each box?
(2) What are the first few characters of encrypted passwords on
each box? Common ones would be things like "$1$..." or
"$2$...", but other options are possible too.

Pm

tamouse mailing lists

unread,
Mar 28, 2012, 9:39:06 PM3/28/12
to Patrick R. Michaud, PmWiki Users
On Tue, Mar 27, 2012 at 7:11 AM, Patrick R. Michaud <pmic...@pobox.com> wrote:
> On Tue, Mar 27, 2012 at 01:47:49AM -0500, tamouse mailing lists wrote:
>> On Mon, Mar 26, 2012 at 11:05 AM, Patrick R. Michaud <pmic...@pobox.com> wrote:
>> > Encryptions in SiteAdmin.AuthUser should also translate across
>> > installations, as long as both installations support the same
>> > types of encryption.  In other words, there's nothing site-specific
>> > about the encryption -- it simply uses PHP's crypt() function.
>>
>> Well, this is interesting. I have two identical installations on my
>> box, one for staging, one for production, synchronized via git. If I
>> set the password in staging, push to a .git repository, then update
>> the production wiki by pulling from the same repository, the passwords
>> do not work. The same thing happens going the other way. These are
>> side-by-side in the same directory under the farm:
>>
>>    /var/www/farm/var/
>>        tamwiki/
>>        tamwikistage/
>>
>> so, what am i doing wrong?
>
> I don't know -- perhaps something else is going on here.
>
>  (1) What are the versions of PHP on each box?

Only one box here. 5.2.13

>  (2) What are the first few characters of encrypted passwords on
>      each box?  Common ones would be things like "$1$..." or
>      "$2$...", but other options are possible too.

var/tamwiki/wiki.d/SiteAdmin.AuthUser: tamara: $1$2b...
var/tamwikistage/wiki.d/SiteAdmin.AuthUser: tamara: $1$2b...

Identical, yet one works and the other doesn't.

A diff(1) shows the files are identical.

Reply all
Reply to author
Forward
0 new messages