[ZendTo] [Data migration from old installation]
Jules
Jules at Zend.To
Thu Mar 1 15:12:49 GMT 2018
Peter,
Basically what Stéphane said, but with some important additions:
1. Comment out the cron jobs in /etc/cron.d/zendto and then restart
crond on both your old and new servers before you give them both access
to the database.
Failure to do this will result in the overnight cleanup job *wiping all
your drop-offs and/or database records* of them.
2. After you've copied all the /var/zendto stuff over to your new
server, then assuming your new server is using SELinux (which it will be
by default), you need to reset the SELinux attributes on everything
under /var/zendto.
Fortunately this is very easy. On the new server, as root do
restorecon -FivR /var/zendto
Obviously you'll need to make sure the basic owner, group and
permissions are correct after your rsync (or however you're getting them
there), but things won't work unless you do the restorecon above as
well. "ls -Z" shows you the SELinux attributes. The "-FivR" options make
it recurse and show you any files it changes the attributes of.
Cheers,
Jules.
On 01/03/2018 14:51, Bocquet Stéphane wrote:
> Hi,
>
> For the database...
> I don't know if your MySQL is on the same server with Apache or not.
> If so, you will have to export your database (full dump and upgrade schema or just datas depending on your old version)
> If not (my case), you'll just have to point to the correct database server and run the upgrade script (or not, depending from the version you came from)
>
> For the files...
> You will have to copy ALL the directories under /var/zendto/drop-offs and /var/zendto/incoming.
>
> I think it should work ;)
> Stéphane
>
> -----Message d'origine-----
> De : zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] De la part de Der PCFreak
> Envoyé : jeudi 1 mars 2018 15:07
> À : ZendTo Users <zendto at zend.to>
> Objet : [ZendTo] [Data migration from old installation]
>
> Hi,
>
> I have successfully setup ZendTo 5 on a new CentOS system, the installer worked great, good job Jules.
> I now want to replace an old system with the new one, which is possible by just switching IP addresses.
>
> The only additional thing I would do is to migrate existing uploads from the old system to the new one.
>
> I use MySQL on the old and the new system, so it should be possible to copy the files from the old system to the new one and putting the database entries into the new database.
>
> Has anyone done that before or is there a kind of official way or small howto?
>
> I really don't want to upgrade the old system in place because of the many customizations but I could possibly create a clone of the old machine, do an inplace upgrade (which might maybe upgrade the database) and then transfer stuff to the new server?
>
> Thanks in advance
>
> Regards
>
> Peter
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'It's okay to live without all the answers' - Charlie Eppes, 2011
www.Zend.To
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20180301/067f923e/attachment.html
More information about the ZendTo
mailing list