?
Solved

Syncing old server to new - is ftp best solution

Posted on 2014-02-14
4
Medium Priority
?
276 Views
Last Modified: 2014-02-25
We have a web server that is crashing/unstable - and a new server that has been bare-metal installed from a backup from broken server about a week old.  There is, however, new data (both mysql and actual PHP files.)

I'm going to break this up into two questions - this is just for the files.

How would you recommend I go about syncing up just the newer files?  Some sort of FTP with the newer tag?  Or is there a better way of doing it...and what would the syntax be to make it recursively parse through a directory structure and find/transfer the files after some date?

Thanks in advance!
0
Comment
Question by:erzoolander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 16

Expert Comment

by:AlexPace
ID: 39861277
FTP transfers complete files so it should be fine for a one-time transfer but if this is an ongoing thing and you expect small changes to large files then rsync might be a better choice because it can sent only the portion of the file that actually changed.
0
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 total points
ID: 39861880
For the files, I'd use rsync (also suggested by AlexPace).

On source server:

rsync -avz /folder/source/ remote_username@remote_servername:/folder/destination/

When rsync starts, you'll have to enter the password for remote_username@remote_servername - rsync will make the first, full, recursive copy.

When starting the above command again (after some time), only the new/changed files will be copied over.
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39864444
Agree with Gerwin.. Go for rsync as this provides delta copy.

TY/SA
0
 
LVL 2

Author Closing Comment

by:erzoolander
ID: 39887745
Gracias!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question