<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Peter,<br>
    <br>
    Basically what Stéphane said, but with some important additions:<br>
    <br>
    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.<br>
    Failure to do this will result in the overnight cleanup job <b>wiping
      all your drop-offs and/or database records</b> of them.<br>
    <br>
    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.<br>
    Fortunately this is very easy. On the new server, as root do<br>
        restorecon -FivR /var/zendto<br>
    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.<br>
    <br>
    Cheers,<br>
    Jules.<br>
    <br>
    <div class="moz-cite-prefix">On 01/03/2018 14:51, Bocquet Stéphane
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DBC13E9D345A434E995B79666B6AA0F703145C3B86@MBXBDDWPRD1.ad.mediapost.fr">
      <pre wrap="">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 : <a class="moz-txt-link-abbreviated" href="mailto:zendto-bounces@zend.to">zendto-bounces@zend.to</a> [<a class="moz-txt-link-freetext" href="mailto:zendto-bounces@zend.to">mailto:zendto-bounces@zend.to</a>] De la part de Der PCFreak
Envoyé : jeudi 1 mars 2018 15:07
À : ZendTo Users <a class="moz-txt-link-rfc2396E" href="mailto:zendto@zend.to">&lt;zendto@zend.to&gt;</a>
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
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a>

_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'It's okay to live without all the answers' - Charlie Eppes, 2011

<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
  </body>
</html>