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
rsync should work out okay, yes.
Pm
---------- 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
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?
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
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.