[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Syncing old server to new - is ftp best solution

Posted on 2014-02-14
4
Medium Priority
?
279 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
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

873 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