1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Transfering files from old to new server

Discussion in 'Server Configuration and Hosting' started by Sunka, Nov 6, 2015.

  1. Sunka

    Sunka Well-Known Member

    I am in process of transfering my Xenforo files from old server to new one.

    My forum is still online on old server because I can not transfer through ssh, so I have to do it in old fashion way through FTP (old server => my computer => new server).

    I transfers most files till today, but what files (attachments, avatars, resources files) must be uploaded after I put forum offline for transfering database?

    If attachments (folders internal data and data) are created in time order (folder 1 first 1000 files, folder 2 second 1000 files, etc...) is it safe to transfer every folder except last one in internal data and data dir before I put forum offline?

    Is there any other files/folders that can be transfered only after I put forum offline? Also I have istalled XenForo media gallery add on

    P.S. Until forum is not transfered to new server, there would be no xenforo upgrading or addons installing/upgrading.

    Thanks
     
    Last edited: Nov 6, 2015
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It's still possible for existing attachments to be deleted but the only consequence of that is there would be surplus files on the new server, so it would essentially be fine.
    Additionally, members can update their avatars and they wouldn't be updated on the new server.

    You should be able to copy all of the files and just synchronize the latest folders in the /data and internal_data directories.

    Ideally though you would ensure they match between the two servers.
     
    Sunka likes this.
  3. Sunka

    Sunka Well-Known Member

    I moved my forum (files + database) from old server (Apache) to new server (Nginx).
    Forum is working very nice.

    Is it safe to delete all .htaccess files cause nginx does not need them.
    Is there any other files I can delete from Xenforo folders?

    Also, in Perfomance option in ACP I enabled "minify css" and "Fetch public templates as files".
    Any bad experience for enabling that two options?
     
  4. Jeremy P

    Jeremy P Well-Known Member

    For minifying CSS, I think it is strongly recommended to have a cache defined in your `config.php` if you don't already.

    For storing templates as files, I believe it makes sense to also make sure you have an opcode cache configured for PHP itself.
     
    Xon, Sunka and Marcus like this.
  5. Marcus

    Marcus Well-Known Member

    Yes. Nginx can not work with htaccess files.
     
    Sunka likes this.
  6. HWS

    HWS Well-Known Member

    Would recommend to use rsync between the 2 servers or -at least- to tar the whole XF installation directory before transferring and move the tar file to the new server. This makes sure all permissions are set correctly and no file will be missed.
     
    Xon, Sunka and Marcus like this.
  7. Sunka

    Sunka Well-Known Member

    I have Redis
    I have php 5.6.x so opcode cache is allready built in
    I allready download all files to my computer and uploaded to new server (5 days for 11 GB) cause on old server SSH was not enabled.
     
  8. HWS

    HWS Well-Known Member

    Since both servers run web servers for sure, you could have placed the tar.gz file in the web directory at the old server and just have used curl, wget etc to transfer the big file to the new server. ;)

    But my tip is too late, I know. :)
     
    Sunka and Marcus like this.
  9. Marcus

    Marcus Well-Known Member

    For Redis, do you use @Xon s addon? Its bot supported from xf by default.
     
    Sunka likes this.
  10. Sunka

    Sunka Well-Known Member

    Yep
     
  11. Sunka

    Sunka Well-Known Member

Share This Page